<<< The equals( ) method override | Index | An abstract Product class >>> |
The abstract keyword
restricts class of objects by preventing their instantiation
forces abstract methods to be implemented in the subclasses
If a class contains an abstract method (with no body) then the class must be declared as an abstract class.
To allow object instantiation, all abstract methods must be implemented in the subclass which inherits from the abstract superclass.
<<< The equals( ) method override | Index | An abstract Product class >>> |