Home »

Can you prevent your class from being inherited by another class?

Question ListCategory: C#.NETCan you prevent your class from being inherited by another class?
alisataylore190 author asked 8 years ago
1 Answers
denielshakespeare5 author answered 8 years ago

Yes. The keyword “sealed” will prevent the class from being inherited.

Please login or Register to Submit Answer