+ 1
Abstract Method
What is the point of an abstract method?
2 Respostas
+ 5
By defining an abstract method, you are forcing subclasses to implement the method.
You can then use the method on an object of the class (and since the class is abstract, you know it is of a subclass), and it will call the method of the right subclass automatically. Polymorphism in action.
http://www.sololearn.com/app/sololearn/playground/cVZHf80U321P/
+ 2
Zen, you forgot to make that public and we can't view it :P