I'm 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;
}
I 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. What is the reason for adopting this practice?
I know that TypeScript is not Java but as Java is my reference, where should I get the methods of the Person (or interface) class in Ionic?