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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?