Interface
|
Abstract Class
|
Declare with keyword Interface
|
Declare with keyword Abstract
|
It will not contain constructor
|
It may or may not contain constructor
|
By default all methods are public abstract methods.
|
It contains abstract methods and non abstract methods.
|
It contains only final variables
|
It contains final variables and instance variables
|
We can implement multiple interfaces
|
We can inherit only one abstract class
|
No comments:
Post a Comment