Skip to main content

Can you prevent your class from being inherited and becoming a base class for some other classes?

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.

Comments

Popular posts from this blog