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

Answer Posted / guest

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the console on a mac?

474


What are the types of inheritance in c#?

495


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1470


What is string concatenation?

477


What is entity framework in c#?

473






How do you type a null character?

500


what are the differences between a class and structure

539


What is uint64_t?

523


What is difference between asp net and c# net?

479


How do you read an Excel sheet in C#?

558


Explain how can I get around scope problems in a try/catch?

481


What is icomparable in c#?

520


Explain the various types of classes used in c#?

497


Does c# support properties of array types?

512


What is use of hashtable in c#?

479