How can you force all derived classes to implement a method present in the base class?

Creating and implementing an interface would be the best way for this situation. Just create an interface with empty methods which forces a programmer to implement all the methods present under it. Another way of achieving this task is to declare a class as abstract with all its methods abstract.

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions