C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

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

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

Yes, just leave the class public and make the method sealed

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
What is the top .NET class that everything is derived from?Can you change the value of a variable while debugging a C# application?