| |
GeekInterview.com > Interview Questions > J2EE > Java
| Print | |
Question: What is the difference between Abstract class and Interface
Answer: Answered by Scott on 2005-05-12 10:03:06: An abstract class can contain non-abstract methods which do not have to be overridden in the subclass. There is no difference between a fully abstract class (all methods declared as abstract and all fields are public static final) and an interface. |
| July 07, 2005 05:22:13 |
#2 |
| Mayank |
Member Since: Visitor Total Comments: N/A |
RE: What is the difference between Abstract class and Interface |
| A class implementing an interface must implement all of the methods defined in the interface, while a class extending an abstract class need not implement any of the methods defined in the abstract class. Additionally, a class extending an abstract class can implement an infinite number of it's own methods. |
| |
Back To Question | |