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,
3 months ago
Social Sciences,
3 months ago
Math,
8 months ago
Accountancy,
8 months ago
English,
11 months ago
Math,
11 months ago