Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / neerajtyagi
You can prevent your class being derived using sealed
keyword.
But you can't use that class as base class once you make
that sealed.
Sealed and Derived both are opposite.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the examples of data types?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
Why data types are important in c#?
What exactly happens when we debug and build the program?
What is void method?
What is difference between tostring() vs convert.tostring() vs (string) cast
What is dynamic dispatch?
What is multicast delegate explain with example?
How do I do implement a trace?
Explain the difference between the debug class and trace class?
What is icomparer in c#?
What is generic types in c#?
What is Implementation inheritance
What is difference between === and ==?
Explain anonymous type in c#?