Is it necessary to implement all interface methods?
It is not necessary for a class that implements an interface to implement all its methods, but in this case the class must be declared abstract. In this respect the implementation of an interface is similar to the extension of an abstract class. The implementation of the interface methods can be deferred through any number of abstract subclasses, but at some point you should create concrete implementations. In fact, its a sign there may be something wrong with your code design if you defer interface implementation in more than one or two subclasses. Actions: Follow-up or correct this answer. Submit a new question.
Related Questions
- I am so busy already! How does faculty find time to do the "extra" work necessary to design and implement service-learning experiences?
- If we implement the interface Iterator, do we have to implement the methods next, hasNext and remove?
- How many methods do u implement if implement the Serializable Interface?