1
I am a beginner in programming and my input language is Java.
Studying some projects with Ionic, I found one that used an interface to define a model, for example:
export interface Pessoa {
nome: string;
idade: number;
}
Remember that the basic difference between a class and an interface is that the interface does not implement behaviors.
I know that Ionic is based on Typescript. Why adopt this practice?
I know that Typescript is not Java but as Java is my reference, where should be the methods of the class (or interface) Person in Ionic?