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



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

Answer / guest

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

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is the use of partial methods?

0 Answers  


What is difference between method and function in c#?

0 Answers  


What are delegates?

0 Answers   TCS,


Will the following code compile?

0 Answers  


Is list a collection c#?

0 Answers  






Which is executed if an exception has not occurred?

0 Answers   Siebel,


Why do we need interface in c#?

0 Answers  


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

0 Answers  


Is namespace necessary in c#?

0 Answers  


What is an assembly qualified name

0 Answers  


How can I check the type of an object at runtime?

0 Answers  


Does C# supports multi-dimensional arrays ?

4 Answers   Microsoft,


Categories