why is a class called and object factory
Answers
Answered by
1
Answer:
A class is called an object factory because objects are created from a class. An object is an instance of a class.
Explanation:
Answered by
0
Like a factory contains many products and components. Similarly, a class contains various types of data and its associated methods. These class members will be shared by set of objects. Thus, we can say that a class is an object factory that produces similar objects.
Similar questions
Math,
2 months ago
Math,
2 months ago
Political Science,
2 months ago
Math,
5 months ago
Accountancy,
5 months ago
English,
9 months ago
Math,
9 months ago