Question:In C#, what is the purpose of the sealed keyword?
A It prevents a class from being inherited.
B It prevents a method from being overridden
C It indicates a constant value.
D It marks a class as abstract.
/28
+ Answer
A
+ ExplanationIt prevents a class from being inherited.
Analysis: The sealed keyword is used to prevent further inheritance of a class, meaning no other class can derive from it. It can also be used to prevent overriding methods in a derived class.