Explain the following diagram OOAA8 Class as Cookie Cutter V
Explain the following diagram:
OOAA8
Class as Cookie Cutter Virtual objects come from classes, not vice versa Concept Definition Instantiation Class ObjectsSolution
Object is specific instance of a class.
or we can say class is a blueprint which consists some properties and objects which are an instance of a class consists all the existing attributes of the class. In object oriented paradigm class is defined for the ease of managing attributes. Suppose a class Car is define which is containing the attributes like whether it runs on gas, how many tires it has color of the car, maximum speed the car can reach. average of the car.these properties define the class.
Now if an object is created for this class that object will contain all the properties of the car; we don\'t need to define again that whether the car runs on which fuel how many tires it has and all. Similarly in the given figure a class is shown which is blueprint and different number of objects are created consisting same properties.
