Defining Object Properties

Object properties are individual characteristics or attributes of the object. These properties can be changed manually or programmatically. Now it’s time to take a closer look at how to name and reference objects as well as how to inspect and change object properties.

✓ For more information about changing object properties, see “Changing Object Properties” later in this chapter.

Naming Objects

If there was such a thing as an Objects 101 class, you wouldn’t get very far without learning about object names. Therefore, before proceeding with object properties, we must take a temporary detour (which, in a way, is not a detour at all) to make sure you understand how to reference objects.

You have already seen that brackets ...

Get Access 2002 Programming by Example 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.