what is an "object" in OOP?

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

what is an "object" in OOP?

Computer Science
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

An object is just what it sounds like. A car is an object in the real world, it has variables of tires, engine, color, body type, etc.. In OOP you have an object, known as a class, for example, a class "car" that has instance variables of engine, tires, color, body type, etc.. In one case you have a physical object that you can touch, in the other you have a defined object that you can manipulate.
:O wow, thank you so! but how can i differentiate an object and a class?
A class IS an object.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

I thought that a class defines an object but it's not the object itself. "The map isn't the territory", no ?
diomit is right. There is a big difference between a class and an object. Take the example of a car. A specific type of car (let's say a Fiat Punto) has some basic functionality. That is comparable to a class. A class is a set of variables and functions that provide functionality to the user. Suppose that there are two brand new Fiat Puntos standing in front of you. Both are of the class 'Fiat Punto', since they have the same functionality. But the two cars are different objects. If the class 'Fiat Punto' defines e.g. a variable 'speed', both cars have a speed, but their speed can be different.
A car is an object... Everything is an object.
thank you all very much ! :D

Not the answer you are looking for?

Search for more explanations.

Ask your own question