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

Answer Posted / guest

make the method as sealed

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is generic delegate in c#?

532


In which order the destructor is called for an inherited class?

604


What does || mean in programming?

576


What is the difference between a private assembly and a shared assembly?

653


What's your approach to fetch static data in your windows form application?

583






What is writeline?

566


In c#, what will happen if you do not explicitly provide a constructor for a class?

608


How do you serialize an object?

600


What is the symbol used for in c#?

594


What does protected internal access modifier mean?

633


Why c# is called c sharp?

546


What is the use of return in c#?

573


How do I create a new form in c#?

592


Are c# destructors the same as c++ destructors?

665


What is signature c#?

579