Interview Questions

Can you allow a class to be inherited, but prevent the method from being over-ridden?

C# Interview Questions and Answers


(Continued from previous question...)

168. Can you allow a class to be inherited, but prevent the method from being over-ridden?

Yes. Just leave the class public and make the method sealed.

(Continued on next question...)

Other Interview Questions