7: | Refer to the following code:
public class test: ICloneable
{
public int Age;
public string Name;
public test(string myname)
{ Name = myname; }
public Object Clone()
{ return MemberwiseClone(); }
}
// Create instances of class
test myTest = new test("Joanna");
myTest.Age = 36;
test clone1 = (test) mytest.Clone();
test clone2 = myTest;
Indicate whether the following statements evaluate to TRue or false:
Object.ReferenceEquals(myTest.Name, clone1.Name)
Object.ReferenceEquals(myTest.Age, clone1.Age)
myTest.Name = "Julie";
Object.ReferenceEquals(myTest.Name, clone1.Name)
Object.ReferenceEquals(myTest.Name, clone2.Name)
|