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
Define an abstract class?
Does c# support multilevel inheritance?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is default value of enum c#?
I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.
Can scriptable objects have methods?
What does type safety mean?
What are the value types in c#?
Can we write class inside a class in c#?
Explain About Global.asax
How can it prevents DLL Hell assembly versioning in .NET?
What is the difference between array and list in c#?
What is the difference between mobile application and desktop application?
Explain the top reason to use c# language?
If a child class instance is created, which class constructor is called first - base class or child class?