Advertisements
Advertisements
प्रश्न
A class is also referred to as 'Object Factory'. Comment.
संक्षेप में उत्तर
उत्तर
- A factory uses a blueprint for the article to manufacture duplicates.
- Similarly, a class is the blueprint from which individual objects are built.
- A class comprises three things: a name, an attribute, and operations.
- Each object in a class has the specified characteristics and functions.
- Because a class makes objects of the same type, it is known as an object factory.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?