Thursday, March 12, 2009

What is the exact difference between Abstract classes and

Question :What is the exact difference between Abstract classes and
Interfaces? (CoreJava)

Answer :Interfaces provide a form of multiple inheritance -- any number of
interfaces can be implemented A class can extend only one other class.
Interfaces are limited to public methods and constants with no
implementation. Abstract classes can have a partial implementation,
protected parts, static methods, etc.

No comments: