Methods

In the .NET terminology, method is the word that represents procedures in other programming languages; basically a method is a member that performs an operation. Methods are of two kinds: Sub (which does not return values) and Function (which instead returns a value). The following are minimal examples of methods:

image

This book makes intensive use of methods, so detailed descriptions on implementations are provided across chapters.

Scope

Methods’ visibility within types can be assigned using one of the qualifiers listed in Table 7.1. If no qualifier is specified, Public is assigned by default.

Get Visual Basic® 2010 Unleashed 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.