Object
noun
say it: “OB-jekt” /ˈɒbdʒɛkt/
One particular thing in a program, made from a class, with its own data and actions.
What is Object?
An object is one specific thing your program works with. It has data (what it knows) and methods (what it can do). If Car is the idea of a car, then your red Honda is an object.
var myCar = new Car("Honda", "red");
myCar.Drive(10);
In a sentence
- “Each book in the cart is an object with its own title and price.”
Level: Novice · More OOP terms at this level
Updated