What do you mean by class and object? Give at least 10real life example of each
Answers
Answered by
0
Answer:
In the sense of programming, a class is a blueprint of an object, whereas an object is an instance of a class. Classes determine all the states and behaviors that an object shall be possessing. States are the variables of a class and behaviors are the functions of a class.
Explanation:
Example of classes and objects are as follows:-
Human is a class and all different persons are its objects, a cat is a class and all the cats are the object of the class cat.
Similar questions