- A class can implement any number of interfaces but a subclass can at most use only one abstract class.
- An abstract class can have non-abstract Methods(concrete methods) while in case of Interface all the methods has to be abstract.
- An abstract class can declare or use any variables while an interface is not allowed to do so.
No comments:
Post a Comment