Multiple choice technology programming languages

Sealed Classes cannot be a base class?

  1. True

  2. False

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

A sealed class in C# or Java (final) is explicitly marked to prevent other classes from inheriting from it. Consequently, it cannot be used as a base class for inheritance. This makes the statement true.