R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `sealed` keyword do in C#?

  • (A) Prevents class from being inherited
  • (B) Makes class abstract
  • (C) Allows method overriding
  • (D) Enables dynamic typing

Explanation by: Ram Sharma
The `sealed` keyword prevents other classes from inheriting from the class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.