Interview Questions

Can you prevent your class from being inherited by another class?

C# Interview Questions and Answers


(Continued from previous question...)

167. Can you prevent your class from being inherited by another class?

Yes. The keyword “sealed” will prevent the class from being inherited.

(Continued on next question...)

Other Interview Questions