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

Answer Posted / sujai cn

By using NEW key word with implementation of method (which
is declared as virtual in base class) in the derived class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is out int in c#?

471


What is delegates and events?

468


Explain the top reason to use c# language?

493


Explain about Oops concept

543


What are the fundamental principles of oo programming?

492






What is the default value of object in c#?

450


What is state c#?

430


What do constructors do in c#?

506


what is main function of alternate teamplate of datalist?

1632


Can a class be protected in c#?

483


When should I use static in C#?

551


What is the difference between constant and readonly in c#?

429


What is native image generator (ngen.exe)?

630


What is void in c#?

526


What is using directive in c#?

492