Difference between abstract class and interface?
Abstract class | Interface |
---|---|
It is partially unimplemented | It is fully unimplemented |
Complete abstraction not possible | Complete abstraction is possible |
Constructors are allowed | Constructors are not allowed |
Data members are allowed | Data members are not allowed |
Object can not be created | Object can not be created for interface |
Access modifiers are allowed in abstract class, by default private will be considered. | Access modifiers are not allowed for members of interface, by default each member will be public |