Interview Question

Extreme Blue Intern Interview

-Ottawa, ON


What is the difference between an abstract class and an interface?

Tags:java, c++, oop
AnswerAdd Tags

Interview Answers

2 Answers


an abstract class can have a method body whereas an interface cannot

Anonymous on


An abstract class is one whose main purpose is to define a common interface for its subclasses. An abstract class will defer some or all of its implementation to operations defined in subclasses; hence an abstract class cannot be instantiated Whereas an Interface you have to understand what do you mean by object type. An object's class defines how the object is implemented. The class defines the object's internal state and the implementation of its operations. In contrast, an object's type only refers to its interface—the set of requests to which it can respond

KD Singh on

Add Answers or Comments

To comment on this, Sign In or Sign Up.