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 ...

Get C# Unleashed 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.