What is the difference between an interface and abstract class?



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

Post New Answer

More OOAD Interview Questions

Can we reduce the visibility of the inherited or overridden method ?

1 Answers  


What are associative classes?

3 Answers   InfoAxon Technologies, Protech,


What's the main difference between arraylist / hashmap and vector / hashtable?

1 Answers  


What is an interface?

1 Answers  


What is the need of multiple inheritance?

1 Answers  


What is the difference between aggregation and composition?

1 Answers  


What are base class, sub class and super class?

1 Answers  


What is super keyword?

1 Answers  


Who is an Actor?

5 Answers   TCS,


USECASE is an implementation independent notation. How will the designer give the implementation details of a particular USECASE to the programmer?

2 Answers  


Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?

5 Answers   ABC, Protech,


What is inheritance?

7 Answers   Protech,


Categories