Advertisements
Advertisements
Question
It can be called an object factory:
Options
Method
Constructor
Data
Class
MCQ
Advertisements
Solution
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
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]
