Computer Science, asked by Anonymous, 4 months ago

Hello.....

WHY IS A CLASS CALLED AN OBJECT FACTORY??​

Answers

Answered by DakshitaBhalla
3

Answer:

A class is called an object factory because objects are created from a class. ... In class-based programming, objects are created from classes by subroutines called constructors, and destroyed by destructors.

Answered by Anonymous
3

Answer:

NEWS=North East West south ...................................................................mein Abhi coming to class 9 that's why S.st ☺✨☺sis I'm in cbse board .....n..u... today I got warning.....take care sis ..............

Explanation:

The factory of objects means a factory that produces the objects. Class is said to be an object factory because the class, basically is an object maker. It contains all the attributes to create an object. It also contains the statements that describe the operation that the object is going to perform.

Attachments:
Similar questions