Sealed Methods
You can also use the sealed keyword to declare that an individual method in an unsealed
class is sealed. This means that a derived class cannot then override the sealed method. You
can seal only an override method. (You declare the method as sealed override.) You can think
of the interface, virtual, override, and sealed keywords as follows:
An interface introduces the name of a method.
A virtual method is the fi rst implementation of a method.
An override method is another implementation of a method.
A sealed method is the last implementation of a method.
Friday, October 17, 2008
Subscribe to:
Posts (Atom)