Web Development Languages: What is an Object


show more Real-world objects have their own identities and properties. Objects in computer programming also do, but they go further. For example, a date or bank account can be an object in a computer program, while you can't touch one in real life. This video tutorial distinguishes between objects themselves and their behaviors, such as saving or printing, and answers the question, "What is an object?" show less
please wait ...

What is an object?

Always remember that Object-Orientation and computing was intended to make thinking about programming closer to thinking about the real world. And that means if we ask what is an object in a computer program, we first ask what is an object in the real world? Well, we instinctively know what that means, but it's tough to describe without saying something vague like an object is a thing. So is this apple an object in real life? Sure. This desk? Well, of course. This mug? Absolutely! They are all objects, these are all things.

We understand that objects are separate from one another. They have their own existence, their own identity that is independent of other objects. This is a mug, and this is a mug, but they are not the same mug, they are not the same object. They are different objects, they have their own identity. We know that being an object has nothing to do with complexity. An apple is an object, but so is an aircraft carrier, so as an iPhone, and we know that one object might contain other...

What is an object?
Video duration: 5m 22s 3h 1m Intermediate

Viewers:

Real-world objects have their own identities and properties. Objects in computer programming also do, but they go further. For example, a date or bank account can be an object in a computer program, while you can't touch one in real life. This video tutorial distinguishes between objects themselves and their behaviors, such as saving or printing, and answers the question, "What is an object?"

Subject:
Developer
Software:
Java
Author:
please wait ...