Why would you use an interface over an abstract class?
java doesn't allow multiple inheritance. that's where interfaces come in.
but you cannot implement any method inside an interface. so if u need to implement some methods and leave others with only the declaration(prototype) better use abstract classes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment