Objects

The base unit we will be working with is called an object. In real terms, an object can be anything. For example, a computer is an object. So is a house, a car, a telephone, a candle, you name it.

Sometimes an object is a collection of other objects. For example, a computer may be an object, but it is made up of a keyboard, processor, disk drives, etc.— each of which is an independent object as well.

The common denominator of all objects is that they know everything they need to know to do what they do. For example, a car has everything it needs to do what it has to do. For example, the steering mechanism accepts information from the driver and the car knows how to interpret the drivers actions into the movement of the car. The shocks adjust to the input of the road, the engine drives the wheels, etc.

Objects used in software development are more abstract than the examples presented here. For example, we can define an object called customer in which we define what the object contains and does. Another object used in OOP would be an object used in a form (called a control). Typical examples of these objects would be push buttons, radio buttons, text boxes (GET fields), and more.

We'll look at the customer and push button objects some more as we go through each topic in our discussion of OOP.