Computer Science, asked by adiyya558, 5 months ago

why is a class called and object factory ​

Answers

Answered by sanjiththesupernigha
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 priya141723
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