May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Shared members cannot be overridden. This means that you can only use them as they have been inherited from the base class or provide a shadowing implementation for creating a new definition from scratch. For example, consider this simplified implementation of the Person class, which exposes a shared Counter property:

If you now create a Contact class that inherits from Person, you can use the Counter property as previously implemented, or you can shadow the base definition as follows:

If you intend to provide an overloaded ...
Read now
Unlock full access