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:
Verified
Q6: The key word this is the name
Q16: The names of the enum constants in
Q18: A class that is defined inside another
Q21: Of the following, which would be considered
Q22: When a method's type is an object,
Q24: To get the name of a calling
Q28: When the this variable is used to
Q29: You cannot use the fully-qualified name of
Q31: When a field is declared static there
Q43: If you have defined a class, SavingsAccount,
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