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

How to implement a singleton design pattern in c#?

676


What are bitwise logical operators?

689


What does exclamation mark mean in access query?

783


Wcf and what is difference between wcf and web services?

737


What is the .net datatype that allows the retrieval of data by a unique key?

698


What is the root element of an xml file?

696


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

812


Explain the difference between Response.Write () and Response.Output.Write ().

741


What is difference between iqueryable and ienumerable in c#?

654


How do you mark a method obsolete?

812


What Is A Multicast Delegate?

779


What is the compiler of c#?

731


Give some examples of commonly used i/o classes?

707


Explain use of abstract and sealed classes in c#?

664


How to install or uninstall a windows service?

796