Multiple choice technology programming languages

A class is a subclass of itself?

  1. True

  2. False

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

In standard object-oriented theory and subtyping relationships, subclassing is reflexive: every class is considered a subclass of itself (a non-strict subclass). However, in languages like Java, a class is not a strict subclass of itself. Given standard OOP type theory, the statement is accepted as True.