Computer Science, asked by adud7, 5 hours ago

Why do we create one or more object of class in java explain with real life example?

Answers

Answered by Anonymous
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