What is an instance of an object in simple words/analogy? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is an instance of an object in simple words/analogy?

12th Aug 2018, 3:31 PM
Myussuf
4 Answers
+ 2
https://www.sololearn.com/discuss/1392419/?ref=app here is a similar post for c++ about classes and objects. an object is an instance of a class
12th Aug 2018, 3:44 PM
Vedant Bang
Vedant Bang - avatar
+ 2
There is no such thing as an instance of an Object. In all object oriented languages, An object is an instance of a class only, which is why you create a new object and assign it to a variable.
12th Aug 2018, 4:13 PM
Vedant Bang
Vedant Bang - avatar
0
Vedant Bang in the post their main focus is on what is class and what is object? but my question is what is an instance of an object? thanks friend.
12th Aug 2018, 4:11 PM
Myussuf
0
Vedant Bang thanks for the correction my friend. what i was looking for is what is an instance of a class in simple words/analogy? thanks again
12th Aug 2018, 4:18 PM
Myussuf