Multiple choice

Interfaces are used as _________, whose properties are inherited by classes.

  1. sub-classes

  2. super classes

  3. extended classes

  4. none of the above

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

In object-oriented programming, interfaces define a contract of methods that implementing classes must fulfill. They act as super classes or types whose abstract properties are inherited and implemented by classes.