Interview Questions

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

C# Interview Questions and Answers


(Continued from previous question...)

78. Can you allow 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