Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Summary
This chapter explored several important interactions between VB.NET and the .NET Framework, beginning with the root class Object. We examined collections, including the methods of the Object class that should be overridden to tap into the functionality provided by the .NET Framework. We introduced interfaces, which allow you to rigorously define a contract for a class to implement. While a class in VB.NET can inherit from only one other class, it can implement multiple interfaces. Another benefit of interfaces is that they facilitate very dynamic programs. VB.NET provides convenient facilities to query a class at runtime to see whether it supports a particular interface.
The interfaces supporting collections were examined in detail, and ...
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