Objects

Think of a real-world object—for example, a cat. A cat could be said to have properties (or states) such as name, age, and color; a cat also has behaviors such as sleeping, eating, and purring. In the world of object-oriented programming, objects also have properties and behaviors. Using object-oriented techniques, you can model a real-world object (like a cat) or a more abstract object (like a chemical process).