Question: Question 2 2 pts If object 1 and object 2 are objects of the same class, to make object 2 a copy of object 1
Question
pts
If object and object are objects of the same class, to make object a copy of object
use an assignment statement to make object a copy of object
use the copy method that is a part of the Java language
use the default constructor to create object with object data members
write a method for the class that will make a field by field copy of object data members into object data members
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
