Skip to Content
VB.NET Language in a Nutshell, Second Edition
book

VB.NET Language in a Nutshell, Second Edition

by Steven Roman PhD, Ron Petrusha, Paul Lomax
April 2002
Intermediate to advanced
688 pages
19h 51m
English
O'Reilly Media, Inc.
Content preview from VB.NET Language in a Nutshell, Second Edition

Name

Interface Statement

Syntax

[ accessmodifier ] [Shadows] Interface name
...statements
End Interface
accessmodifier (optional; Keyword)

One of the following keywords, which determines the visibility of the interface:

Public (optional; Keyword)

Indicates that the interface is publicly accessible anywhere both inside and outside of the project.

Private (optional; Keyword)

Indicates that the interface is accessible to any nested types, as well as to the type (if any) in which it is defined.

Protected (optional; Keyword)

Indicates that the interface is accessible only to derived classes; a protected interface can only be declared inside of a class.

Friend (optional; Keyword)

Indicates that the interface is accessible only within the project that contains the interface definition.

Protected Friend (optional; Keyword)

Indicates that the interface is declard inside of a class and that it is accessible throughout the project that contains the interface definition, as well as to derived classes.

Shadows (optional; Keyword)

Indicates that the interface shadows an identically named element in a base class.

name (required; String literal)

The name of the interface

statements (required)

Code that defines the interface members that derived classes must implement

Description

Defines a virtual base class along with its public members. The interface can then be implemented by derived classes using the Implements statement.

Rules at a Glance

  • The standard naming conventions for name apply. However, by ...

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.
Start your free trial

You might also like

VB .NET Language in a Nutshell

VB .NET Language in a Nutshell

Steven Roman PhD, Ron Petrusha, Paul Lomax

Publisher Resources

ISBN: 0596003080Supplemental ContentCatalog PageErrata