July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Chapter 12, “Inheritance,” discusses polymorphism, which offers a common infrastructure to different types of objects. In the discussion, interfaces find their natural habitat. They provide a common set of members that classes need to implement if they need to perform a particular series of tasks. A typical example is the IDisposable interface that you met in Chapter 8. All classes that need to provide a mechanism for releasing resources implement that interface, which exposes a set of common members. Another example is the ICloneable interface that defines a Clone method that classes can implement to provide the capability to copy a class instance. You can easily understand that interfaces are generic; they are not ...