Which of the following statements best captures the behaviour of interfaces…

Which of the following statements best captures the behaviour of interfaces when one interface extends another in object-oriented design?

  1. A.

    An interface can only extend a single class, but not another interface.

  2. B.

    An interface cannot be extended or implemented further once defined.

  3. C.

    When one interface extends another, it inherits all constants and method declarations from the parent interface.

  4. D.

    Interfaces can implement other interfaces to share functionality.

Attempted by 44 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…