Solved

If Object1 and Object2 Are Objects of the Same Class

Question 38

Multiple Choice

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


A) write a method for the class that will make a field by field copy of object1 data members into object2 data members
B) use the copy method that is a part of the Java API
C) use the default constructor to create object2 with object1 data members
D) use an assignment statement to make object2 a copy of object1

Correct Answer:

verifed

Verified

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

Related Questions