Chapter 4. Introduction to Classes and Objects

Nothing can have value without being an object of utility.

Karl Marx

You will see something new. Two things. And I call them Thing One and Thing Two.

Dr. Theodor Seuss Geisel

Your public servants serve you right.

Adlai E. Stevenson

Knowing how to answer one who speaks, To reply to one who sends a message.

Amenemope

Objectives

In this chapter you will learn:

  • What classes, objects, methods, instance variables and properties are.

  • How to declare a class and use it to create an object.

  • How to implement a class’s behaviors as methods.

  • How to implement a class’s attributes as instance variables and properties.

  • How to call an object’s methods to make them perform their tasks.

  • The differences between ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.