Differentiate between an abstract class and an interface?



Differentiate between an abstract class and an interface?..

Answer / Vikas Dubey

An Abstract Class is a class that cannot be instantiated and it contains both abstract and concrete methods. An Interface is a completely abstract class, it only contains abstract methods and is used for achieving multiple inheritance. In Java, a class can extend only one abstract class but can implement multiple interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

When do you prefer to use composition than aggregation?

1 Answers   InfoAxon Technologies, Protech,


Where shall I go for Package Diagram?

1 Answers   Protech,


Comment: C++ "includes" behavior and java "imports"

1 Answers   Protech,


Is iterator a class or interface? What is its use?

1 Answers  


Why is class hierarchies managed in object-oriented programming?

1 Answers  


What is difference between static and non-static fields of a class?

1 Answers  


Can we use static method definitions in interfaces?

1 Answers  


What is Object Constraint Language (OCL)?

1 Answers   Protech,


What is Polymorphism, overloading, overriding and virtual?

1 Answers   MindCracker,


Explain the implementation phase with respect to oop?

1 Answers  


What is static and dynamic Binding?

1 Answers  


What are the interfaces you used in beans?

1 Answers  


Categories