+ 2

what is the difference between object and instance?

16th Oct 2016, 5:47 PM
Shafiya Nizam
3 Answers
+ 5
They are synonymous.
16th Oct 2016, 6:21 PM
Zen
Zen - avatar
+ 2
an object is a class instance
16th Oct 2016, 7:37 PM
manuel
+ 2
They are the same thing. When an instance of a class is initiated, then the object of the class has been created, or initiated as well. Because an object is just an instance of a class that has been created or initiated. There can be multiple objects or instances of any given class. The class is the blueprint for what the object or "class instance" will be.
26th Oct 2016, 5:08 AM
Sean Lindholm
Sean Lindholm - avatar