0

equals()

In the last example why the method main is included in the same class A ? Can a class to instance it's self ? The main method into class A can to instance type A objects ? Isn't it an error ?

15th May 2018, 9:49 PM
Amedeo Schiarizza
Amedeo Schiarizza - avatar
1 Réponse
+ 2
Yes, you can create an instance of any class that is not abstract. The class with the main method is not abstract so, we can create an instance of it.
15th May 2018, 10:53 PM
Rrestoring faith
Rrestoring faith - avatar