0
What's the difference between object and instance? Can anyone explain? Pls
3 Answers
+ 4
An object is a structure in coding that holds methods and attributes.
An instance is an object that has been created and stored in memory.
+ 4
An object is the type of car selling in the showroom, which you can choose it's color, engine type, tyre, leather seatâŠ
An instance is the car you have bought and placed in your garage, you can crash it tooâŠ
0
I thought object and instance are the same thing, and the question usually is the difference between class and object.
class is a description of an object, and the object is, well, an object, an instance of that class.