What is Unique Identity in regards to objectsSolutionwhen yo
What is “Unique Identity” in regards to objects?
Solution
when you create an object it will have an unique identity.if two objects are create in the same class
still there are unqiue
example:
Box b1=new Box(length,height);
Box b2=new Box(length,height);
Box b3=new Box(height,weight);
Box b4=b3;
here you think that b1 and b2 are similar but there are unique and each one will have unique identity
b1 and b3 are unequal but they different parameters
