Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answer Posted / shantanu singh patel
Yes you can make it by using Sealed keyword.
No when your class in Sealed you cant inherit the class
then the question of base class for some other class is not
significant.
Thanks and Regards,
Shantanu
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the default boolean value in c#?
Why do we use partial class in c#?
What are the types of inheritance in c#?
How does the lifecycle of Windows services differ from Standard EXE?
What kind of the information stored inside the assembly?
What do you use c# for?
What is assembly manifest?
What does type safety mean?
How to exclude a property from xml serialization?
How to sort an int array in c#?
What is the use of console readkey ()?
Which is faster abstract class or interface in c#?
Why are local variables stored in stack?
What does executescalar return in c#?
What is the delegates in c#?