Advertisements
Advertisements
Question
Why is a class called an object factory?
Answer in Brief
Solution
Class is the prototype of an object. Each object belonging to a specific class possesses the data and functions defined within the class. It also produces the objects of similar type. Hence, a class is termed as an object factory.
shaalaa.com
Is there an error in this question or solution?