July 2003
Intermediate to advanced
736 pages
16h 35m
English
.NET supports two flavors of polymorphism: (1) the polymorphism introduced through inheritance, virtual methods, and the virtual methods table, and (2) the polymorphism introduced with COM and interfaces. The first form, called inheritance polymorphism, means that all instances have a common classification. (For example, bears and goats can both be classified as mammals.) The second form of polymorphism, called interface polymorphism, means that all instances have a common capability but are not required to have a common classification. (For example, radios, televisions, hearing aids, telephones, and bullhorns all have the ability to attenuate volume, but they don't necessarily share a common classification.) ...
Read now
Unlock full access