+ 2

Hi I'm a beginner and I'm little confused, what is the difference between the class and the object

28th Mar 2017, 6:29 PM
ahmed
4 ответов
+ 10
class is a blueprint of objects. its like a folder that can have SIMILAR objects Example:- Insect is a class,and a cockroach is its object.
28th Mar 2017, 6:33 PM
Meharban Singh
Meharban Singh - avatar
+ 10
class is a group of objects that shares common properties it can contain data and modules
29th Mar 2017, 11:18 AM
Saumya
Saumya - avatar
+ 4
you can create a class in your code but it will not affect your program until you inherit objects from that class (creating them by calling the constructor).
28th Mar 2017, 6:56 PM
seamiki
seamiki - avatar
+ 2
Thank you all 😊
28th Mar 2017, 6:58 PM
ahmed