Computer Science, asked by Skv1239, 8 months ago

A class is an Object factory. Justify the statement.​

Answers

Answered by niladribanerjee2004
6

Answer:

Explanation:A class is called an object factory because objects are created from a class. An object is an instance of a class. The following statements create two objects s1 and s2 of the class Student. ... Things are similar in the world of classes and objects.

Answered by akathwal004
13

A class is also known as object factory because it describes a group of objects with similar properties , common behaviour and common logic. for example person , animal and furniture are all objects . Therefore, by grouping objects into classes one can abstract the problem , giving object modelling the power and ability to generate from few specific cases to a chain of similar cases.

hope this answer will be helpful ^_^

Similar questions