+ 1
What is a difference between object and instance
i have a question object created by classes and object is like instanc of class then what is a difference between object and instant the question was asked to one of my friend in interview. any buddy have any Idea
2 Respostas
+ 2
An object is a thing, whereas an instance is a version of that thing currently in the game.
Forr example, say you create an object like an enemy, and then have 10 of that enemy on screen.
The enemy is the object, whereas each individual enemy actually in the game is a separate instance of that object.
Hope that helped!
- 4
An instance is an object that resides inside the memory. You can get more explaination using Google searching engine.
Happy coding!