7.1. Introduction

Experience has shown that the best way to develop and maintain a large program is to construct it from small, simple pieces. This technique is called divide and conquer. We introduced methods in Chapter 3. In this chapter, we study methods in greater depth. We emphasize how to declare and use methods to facilitate the design, implementation, operation and maintenance of large programs.

You’ll see that it is possible for certain methods, called Shared methods, to be called without the need for an object of the class to exist. You’ll declare a method with more than one parameter. You’ll see how Visual Basic keeps track of which method is currently executing, how local variables of methods are maintained in memory and how a method ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.