Advertisements
Advertisements
प्रश्न
Differentiate classes and objects.
अंतर स्पष्ट करें
उत्तर
Class:
- Class is a blueprint or template from which objects are created.
- Class doesn’t allocate memory when it is created.
- Class is a logical entity.
Object:
- The object is an instance of a class.
- Objects allocate memory when it is created.
- The object is a physical entity.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?