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 language
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:
Verified
Q42: If the following is from the method
Q43: If you have defined a class, SavingsAccount,
Q44: Which of the following is not true
Q45: If you have defined a class, SavingsAccount,
Q46: Assume the class BankAccount has been created
Q47: Given the following declaration: enum Tree (
Q48: Given the following declaration: enum Tree (
Q49: If you attempt to perform an operation
Q50: If the following is from the method
Q51: To compare two objects in a class,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents