Programming with ADO.NET Interfaces

.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.) ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.