Can You Prevent Your Class From Being Inherited By Another Class?
Answer Posted / Kavita Gupta
Yes, you can prevent a class from being inherited by another class in .NET using the sealed keyword. When you mark a class as sealed, it cannot be inherited by other classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers