+ 1

Halp me !

Hey, can someone explain the difference between a class and an object please ? Thanks !

17th Oct 2017, 4:35 PM
Luc Dercourt
Luc Dercourt - avatar
2 Respostas
+ 1
The class is the definition of the object. The object is a instance of that definition. I like the analogy of the drawing and the house. So the class is the drawing and the object is the house. The drawing is not the house it is the definition of the house. Also the house does define it self. it a instance of the drawing.
17th Oct 2017, 4:43 PM
sneeze
sneeze - avatar
0
Okay, well thanks boi :)
17th Oct 2017, 4:45 PM
Luc Dercourt
Luc Dercourt - avatar