Multiple choice technology programming languages

How can a class be both abstract and sealed?

  1. The class has no public constructors.

  2. The class is static.

  3. The class implements more than one interface.

  4. The class is generic.

  5. This scenario is impossible.

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

In C#, static classes are implicitly both abstract (cannot be instantiated) and sealed (cannot be inherited). This is the only way a class can have both characteristics.