|
|
| java |
Expert:Raghubir Singh
diffrence between interface and abstract class
|
| Answers |
Interface: It contains only abstract methods We have to implement an interface The variables in interface are static and final. A class can implement any number of interfaces
AbstractClass: It contains abstract methods as well as concrete methods Abstract classes has to be extended. A class can extend only one Abstract Class and if it doesnot override the methods it should also be declared as abstract
|
Read for more information.
http://www.roseindia.net/java/master-java/java-object-oriented-language.shtml
Thanks.
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|