Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it would be appropriate to make the base class abstract if the inherited class has a different method signature than the base class. An abstract class is a class that cannot be instantiated directly and is meant to be extended by other classes. It provides a template or a blueprint for the inherited classes to follow. Making the base class abstract ensures that it cannot be instantiated directly and that any class that extends it must provide their own implementation for the abstract method(s). This allows for greater flexibility and customization in the inherited classes.