Type System Additions
The .NET type system is considerably richer than the COM type system and so required a number of concepts to be added to the Visual Basic language. The most important was inheritance, but overloading, namespaces, and name hiding were also significant changes.
Classes
A class in previous versions of Visual Basic is equivalent to a COM coclass, which is a collection of supported interfaces. A coclass does not have a distinct identity—when creating a coclass, the creator requests one of the interfaces that the coclass implements. It is then possible to request other supported interfaces by requesting the IUnknown interface of the instance. However, in general it is not possible to know what coclass you have in hand given a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access