Multiple choice technology programming languages

Which statement is true about interface and abstract classes?

  1. a. An abstract class may only contain incomplete methods (abstract methods)

  2. b. An interface may contain complete or incomplete methods

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

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

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

A class can implement multiple interfaces but inherit from only one abstract class due to single inheritance constraints in most languages. This design allows interfaces to define multiple contracts while abstract classes provide implementation inheritance. Option D is incorrect because a concrete class must implement ALL interface members (unless the class itself is abstract), just as it must implement abstract class members.