Code Reusability:?
- The common structure of the algorithm is defined in the abstract class, so
subclasses don't have to repeat the same steps. Only the details of specific
steps need to be implemented in each subclass.
subclasses don't have to repeat the same steps. Only the details of specific
steps need to be implemented in each subclass.