What Is an Object?
Thinking about objects is easy at first if they're visualized in a concrete and physical manner. For instance, look around the house. There are several well-known objects such as chairs, TVs, and computers.
These objects have varying degrees of sophistication. This is evident by how they appear and what they do. A couple more appropriate object-oriented terms for “appearance” and “what they do” would be, respectively, attributes and behavior. The following paragraphs examine the attributes and behavior of these three objects.
Chairs are high on attributes but low on behavior. Some of their attributes are legs, seat, and back. Being a little more specific, each attribute can be used to describe the chair. Number of legs could ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access