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 ?
1 Odpowiedź
+ 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.