43.5k views
4 votes
Why is a class called a factory of objects

User Cgreeno
by
5.5k points

1 Answer

3 votes

Step-by-step explanation:

A class is called an object factory because objects are created from a class. An object is an instance of a class.

User Narayan Singh
by
5.5k points