Solved

If Object1 and Object2 Are Objects of the Same Class

Question 23

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents