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 private in c#?

0 Answers  


What is type cast in C#?

0 Answers   TryTechnicals Pvt Ltd,


What is regex c#?

0 Answers  


Why do we use public static void main in c#?

0 Answers  


What is marker interface?

1 Answers   TCS,






How is method overriding different from overloading?

0 Answers  


Define parsing?

0 Answers  


What is a Managed Code??

0 Answers  


What is a collection in c#?

0 Answers  


What is parallel foreach in c#?

0 Answers  


What are the types of delegates in c#?

0 Answers  


What is virtual class in C#?

0 Answers   B-Ways TecnoSoft,


Categories