Computer Science, asked by arham62, 4 months ago

why is class called an objective factory? explain with 2 real life example.​

Answers

Answered by premnathmohanasri
1

Explanation:

a class is called an object factory because objects are created from a class. ... For example: in real life, a car is an object. The car has attributes, such as weight and color, and methods, such as drive and brake. A Class is like an object constructor, or a "blueprint" for creating objects.

Similar questions