Objects: Characteristics

Learn about the two fundamental characteristics of an object, state and behavior, in this lesson.

State and behavior

To understand object-oriented programming technology, we first need to understand objects. We have reproduced real-world objects’ behaviors and states in the programming world. Looking around helps to see how the real-world objects are moving around us. Humans, dogs, computers, cars, and many more.

Taking an in-depth look will give us more insights about objects. We find that real-world objects share two characteristics: they all have a state and behaviors. Humans have different states like name, height, emotion, etc. And they have behaviors, like shouting, walking, running, etc.

Get hands-on with 1200+ tech skills courses.