Why is a class called a factory of objects? Write a Java statement to create an object obj of class JavaExample.
Answers
Answered by
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
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
Science,
3 months ago
Sociology,
6 months ago
Math,
6 months ago
English,
10 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago