+ 1

What is the difference between object and instance ????

26th Feb 2017, 8:08 AM
Mrinal Kanti Ghosh
Mrinal Kanti Ghosh - avatar
3 Respostas
+ 7
They are not the same. Instance - Before Memory Allocation Object - After Memory Allocation
26th Feb 2017, 8:36 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
Nothing, both are same. In general, Instance means example. Object is said to be an instance of class. Class is always defined and use. When somebody asks you - what is the example of class you made? Show him it's object. Because Objects are instance of class.
26th Feb 2017, 8:11 AM
Sachin Artani
Sachin Artani - avatar
+ 1
Object ia instance of class. Basically they mean same thing.
26th Feb 2017, 8:18 AM
Kalle