I want to know the difference between a clone of anobject and Creating a refrence of that object.
A reference is a pointer refering to the same memory space. A cloneis to create a new object and copy the content of the exsitingobject to the new object.