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 can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

678


What is difference between arraylist and list in c#?

513


Please explain the basic string operations used in c#?

624


What does the initial catalog parameter define in the connection string?

569


Is c# a strongly-typed language?

626






Why do we need dependency injection in c#?

551


What is an arraylist in c#?

695


What are the types of access modifiers?

551


What is dao in c#?

566


How to add a readonly property in c#.net

584


Can you put two constructor with the same structure in a class?

575


What is a boolean c#?

565


What is managed or unmanaged code?

664


Can we inherit abstract class in c#?

588


Illustrate serialization?

589