0
Comment différencier une méthode de la classe d' une méthode de l objet ?
2 ответов
+ 1
Class methods will be prefixed with a 'static' keyword. This makes sure that there is only one copy of the method.
public static void display(){ }
Object methods do not belong to the class but to the instance of the class and you can create as many copies you want.
public void display(){ }
0
Tanks