Interfaces

Interface is a very fundamental concept in computer programming. A large system is inevitably decomposed into parts, and it is critical to precisely specify the interfaces between these parts. Interfaces should be quite stable, as changing an interface affects multiple parts of the system. In VB.NET, Interface is a keyword and has a very precise meaning. An interface is a reference type, similar to an abstract class, which specifies behavior as a set of methods, properties, and events.[2] An interface is a contract. When a class or structure implements an interface, it must adhere to that contract.

[2] We discuss events later in this chapter.

Interfaces are a useful way to partition functionality. You should first specify interfaces ...

Get Application Development Using Visual Basic® and .NET 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.