Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started