Multiple choice c sharp

A class which cannot be derived is

  1. Sealed

  2. Abstract

  3. Private

  4. Protected

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

A sealed class in C# cannot be inherited or derived from. This is explicitly designed using the 'sealed' keyword when you want to prevent inheritance. Abstract classes are meant to be derived from, while Private and Protected are access modifiers that apply to class members, not to class inheritance itself. You can mark a class as sealed to stop other classes from inheriting it.