Advertisements
Advertisements
प्रश्न
It can be called an object factory:
पर्याय
Method
Constructor
Data
Class
MCQ
Advertisements
उत्तर
Class
Explanation:
A class is called an object factory because it is used to create objects. It acts as a blueprint or template that defines the data (attributes) and methods (functions) that objects will have.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: Class as the Basis of all Computation - Exercises [पृष्ठ ६४]
