Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
At the opposite end of the inheritability spectrum from the abstact classes and members that must be inherited are sealed classes. The syntax to seal a class is straightforward. Just mark a class with the NotOverridable keyword and other classes can’t inherit from it:
Public NotOverridable Class mySealed
Classes are easy, but those tricky keywords new and override get involved when you want to seal individual methods within a class. Here’s how that works: