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 default class in c#?
What is deadly diamond problem?
Explain about Destructor method?
How do you implement thread synchronization in c#?
What is asp net c#?
What is static classes?
Why do we use dictionary in c#?
Can partial class be inherited?
What all details the assembly manifest will contain?
What is the difference between firstordefault and singleordefault?
What is difference between singleordefault and firstordefault?
What is an escape sequence in c#?
Explain the difference between arraylist and array and in c#?
What is the difference between Static, Const and read only?
What is lazy keyword in c#?