what is the real time difference between abstract class & interface
abstract & interface class
Collapse
X
-
Tags: None
-
Implementing an interface is like signing a contract. The contact says I hereby swear that I will implement all the methods declared in the interface otherwise I'm going to be abstract.Originally posted by pradeepbr2003what is the real time difference between abstract class & interface
Extending a subclass says I want all the available functionality from that class copied over to me as well. -
Abstract class is not a concrete class.
That means it may contain abstract class or not.
And abstract class may have concrete method or not.
But interface can not contain concrete method .
and Interfaces r by default abstract.
For more clear conception read out the SUN-API.
kind regards.
dmjpro.Comment
Comment