What is the difference between an interface and abstract class?
Answer / Nitin Agarwal
An interface is a reference type that only contains method signatures. A class can implement multiple interfaces, but cannot inherit from another class directly. An abstract class, on the other hand, can contain both method signatures (abstract methods) and concrete implementation for some methods. A class can inherit from an abstract class and must provide implementations for all abstract methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we reduce the visibility of the inherited or overridden method ?
What are associative classes?
3 Answers InfoAxon Technologies, Protech,
What's the main difference between arraylist / hashmap and vector / hashtable?
What is an interface?
What is the need of multiple inheritance?
What is the difference between aggregation and composition?
What are base class, sub class and super class?
What is super keyword?
Who is an Actor?
USECASE is an implementation independent notation. How will the designer give the implementation details of a particular USECASE to the programmer?
Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?
What is inheritance?