Saturday, March 21, 2009

What is the difference between an interface and abstract class?

(1)
In an interface , all methods are abstract and there is no any implementation.
In an abstract class some methods can be concrete.

(2)
In an interface class, no accessibility modifiers are allowed like public,private they are all public by default.
An abstract class may have accessibility modifiers.

No comments: