Solved

If Object1 and Object2 Are Objects of the Same Class

Question 46

Multiple Choice

If object1 and object2 are objects of the same class, to make object2 a copy of object1:


A) assign object1 to object2, such as object2 = object1;
B) write a copy method that will make a field by field copy of object1 data members into object2 data members
C) use the Java copy method that is a part of the Java language
D) use the default constructor to create object2 with object1 data members

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions