+ 2
Hi I'm a beginner and I'm little confused, what is the difference between the class and the object
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.
+ 10
class is a group of objects that shares common properties it can contain data and modules
+ 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).
+ 2
Thank you all 😊