The concept of class is similar to the concept of structure in C. In other words classes are the datatypes on which are created. So while a class is created no memory is allocated only when an object is created memory gets allocated.
The concept of class is similar to the concept of structure in C. In other words classes are the datatypes on which are created. So while a class is created no memory is allocated only when an object is created memory gets allocated.