Multiple choice technology programming languages

What is difference between interface and abstract class

  1. An abstract class may only contain on complete method

  2. An interface may contain complete or incomplete method

  3. A class may inherit several interfaces , A class may inherit only one abstract class.

  4. A class implementation an abstract class has to implement all methods of abstract class , but same is not required in case of an interface.

  5. All

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A primary difference in object-oriented programming is that a class can implement multiple interfaces but can inherit from only one abstract class (single inheritance). Distractors are incorrect because abstract classes can have multiple implemented methods, and classes must implement all members of any interface they implement.