0

Instances and objects

Can someone explain what is meant by instances and objects in coding?

6th Jan 2018, 6:32 AM
hann
1 ответ
+ 1
An object is an instance of a class. So, best to think of a class as a template, or blueprint, for an object. You use the class to instantiate an object, which then has access to the class properties and methods.
6th Jan 2018, 12:13 PM
Bagshot
Bagshot - avatar