why class is called an object factory?
Answers
Answered by
2
hiiiiiiiiii frnd..
hope dis hlps..
A class is called an object factory because objects are created from a class. An object is an instance of a class.
#be brainly..
hope dis hlps..
A class is called an object factory because objects are created from a class. An object is an instance of a class.
#be brainly..
sagnik50:
thanks
Answered by
0
Answer:
The term factory typically is used for holding similar kind of objects within it. Generally, an object is created by using information available in the class. It also contains details of an object's internal data and when an object is brought into existence, it is called instantiation.
Thus, we can conclude that class is a prototype of an object. Each object belonging to a specific class possesses the data and the methods defined within the class. It produces objects of similar type. Hence, it is termed as object factory.
Similar questions
Biology,
7 months ago
Chemistry,
7 months ago
English,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago