Chapter 9. Classes and Objects: A Deeper Look

My object all sublime I shall achieve in time.

W. S. Gilbert

Is it a world to hide virtues in?

William Shakespeare,Twelfth Night

This above all: to thine own self be true.

William Shakespeare, Hamlet

Don’t be “consistent,” but be simply true.

Oliver Wendell Holmes, Jr.

Objectives

In this chapter you will learn:

  • What class scope is and how it affects access to class members.

  • To create overloaded constructors that can initialize objects of a class in a variety of ways.

  • To use partial classes to enable one class to span multiple source-code files.

  • How composition enables you to construct classes that are “made out of” other classes.

  • To use Me to refer to the current object’s members.

  • How garbage ...

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.