Implementing Interfaces in VB .NET

In this new article, Paul quickly gets to the point of examining interfaces in Visual Basic .NET: how to define them and how to implement them.

provided by: 
Originally published at Internet.com


What difference a year or two can bring. Two and a half years ago I thought I'd be writing a book titled Visual Basic 7 Unleashed for Sams. Completing the final drafts of Sams Visual Basic .NET Unleashed reminds me that a lot has changed in Visual Basic.

To help you make the transition as thoroughly and as completely as possible myself and other authors and contributors are writing a lot about threading, reflection, assemblies, COM interop, and delegates. But, reviewing programming subjects with a friend recently, I was reminded that there are developers at all levels, not just the advanced level. To be as thorough as possible, then, I am exploring advanced topics as well as non-advanced topics. (I welcome queries from readers too, and sometimes write an article based on several queries.)

This article is to the point. In this article we will examine interfaces: how to define them and how to implement them.

The idea of an interface is not new to COM, but in Visual Basic 6 every class was a COM interface. In Visual Basic .NET every class is a class and an interface is an interface, but not a COM interface. Classes have existed for decades and interfaces are not the sole purview of COM. A class describes the fields, properties, events, and methods a type will have. An interface is more like a portal or an attachment. An interface says that a type will implement these specific methods, but does not define what a type is. For example, a house can have a Window but so can a car. A type that implements a method open could be defined as something that has a Window, but the types could define cars, boats, houses, or the soul...

Read article at Internet.com site
Regional Articles
- Implementing Interfaces in VB .NET Alabama
- Implementing Interfaces in VB .NET Alaska
- Implementing Interfaces in VB .NET Arizona
- Implementing Interfaces in VB .NET Arkansas
- Implementing Interfaces in VB .NET California
- Implementing Interfaces in VB .NET Colorado
- Implementing Interfaces in VB .NET Connecticut
- Implementing Interfaces in VB .NET DC
- Implementing Interfaces in VB .NET Delaware
- Implementing Interfaces in VB .NET Florida
- Implementing Interfaces in VB .NET Georgia
- Implementing Interfaces in VB .NET Hawaii
- Implementing Interfaces in VB .NET Idaho
- Implementing Interfaces in VB .NET Illinois
- Implementing Interfaces in VB .NET Indiana
- Implementing Interfaces in VB .NET Iowa
- Implementing Interfaces in VB .NET Kansas
- Implementing Interfaces in VB .NET Kentucky
- Implementing Interfaces in VB .NET Louisiana
- Implementing Interfaces in VB .NET Maine
- Implementing Interfaces in VB .NET Maryland
- Implementing Interfaces in VB .NET Massachusetts
- Implementing Interfaces in VB .NET Michigan
- Implementing Interfaces in VB .NET Minnesota
- Implementing Interfaces in VB .NET Mississippi
- Implementing Interfaces in VB .NET Missouri
- Implementing Interfaces in VB .NET Montana
- Implementing Interfaces in VB .NET Nebraska
- Implementing Interfaces in VB .NET Nevada
- Implementing Interfaces in VB .NET New Hampshire
- Implementing Interfaces in VB .NET New Jersey
- Implementing Interfaces in VB .NET New Mexico
- Implementing Interfaces in VB .NET New York
- Implementing Interfaces in VB .NET North Carolina
- Implementing Interfaces in VB .NET North Dakota
- Implementing Interfaces in VB .NET Ohio
- Implementing Interfaces in VB .NET Oklahoma
- Implementing Interfaces in VB .NET Oregon
- Implementing Interfaces in VB .NET Pennsylvania
- Implementing Interfaces in VB .NET Rhode Island
- Implementing Interfaces in VB .NET South Carolina
- Implementing Interfaces in VB .NET South Dakota
- Implementing Interfaces in VB .NET Tennessee
- Implementing Interfaces in VB .NET Texas
- Implementing Interfaces in VB .NET Utah
- Implementing Interfaces in VB .NET Vermont
- Implementing Interfaces in VB .NET Virginia
- Implementing Interfaces in VB .NET Washington
- Implementing Interfaces in VB .NET West Virginia
- Implementing Interfaces in VB .NET Wisconsin
- Implementing Interfaces in VB .NET Wyoming

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML