Computer Science, asked by pathaksruti2005, 6 months ago

Why is a class called a factory of objects? Write a Java statement to create an object obj of class JavaExample.​

Answers

Answered by prem4053
10

A class can create objects of itself with different characteristics and common behaviour just like a factory can produce similar items based on a particular design. Hence, class is also referred to as 'Object Factory'.

thank you and mark me as brainlist.

Answered by shashikumarbhattacha
5

Answer:

A class can create objects of itself with different characteristics and common behaviour just like a factory can produce similar items based on a particular design. Hence, class is also referred to as 'Object Factory'.

Explanation:

This is your answer good night have a sweet dreams take care ✌️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️ I hope this will help you

Similar questions