Why do we create one or more object of class in java explain with real life example?
Answers
Answered by
3
Answer:
class is collection of object.
object is real world entity like person,place,things.
class obj1=new class();
class obj2=new class();
if we modify data in obj1 cannot affect obj2 data.
real world examples are organization maintain employee data.
Similar questions
English,
3 hours ago
Physics,
3 hours ago
English,
5 hours ago
Hindi,
5 hours ago
Social Sciences,
7 months ago