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


Please Help Members By Posting Answers For Below Questions

What are the examples of data types?

567


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

1545


Why data types are important in c#?

562


What exactly happens when we debug and build the program?

2258


What is void method?

583






What is difference between tostring() vs convert.tostring() vs (string) cast

644


What is dynamic dispatch?

626


What is multicast delegate explain with example?

543


How do I do implement a trace?

653


Explain the difference between the debug class and trace class?

568


What is icomparer in c#?

576


What is generic types in c#?

576


What is Implementation inheritance

601


What is difference between === and ==?

545


Explain anonymous type in c#?

635