Question: Student,java---------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------- Please complete the constructor, makeShallowCopy(), and makeDeepCopy() methods of Student.java file public class Registration implements Cloneable **Semester that the student took this class.

 Student,java---------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------- Please complete the constructor, makeShallowCopy(), and makeDeepCopy() methods of

Student,java----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Student.java file public class Registration implements Cloneable **Semester that the student took

----------------------------- Please complete the constructor, makeShallowCopy(), and makeDeepCopy() methods of Student.java file

public class Registration implements Cloneable **Semester that the student took this class. UB uses a standardized approach to semester names." private String semester; /.. Department and number of the course for which the student was registered. private String course Final grade the student received in this course for that term. This really should be an enum, but Strings should be more familiar for students to use. private String grade; *Creates a new empty Registration that can be filled in later. public Registration) t Creates a new Registration which stores the given information @param term Semester in which this registration took place eparam classId Combines the department and course number of the class in which the student registered eparam outcome Report card outcome from this registration. public Registration(string term, String classId, String outcome) t semester - term; course-classId; grade-outcome; Instantiates and returns a duplicate of the object on which this is called @return Distinct Registration instance that is otherwise a perfect duplicate public Registration cloneO t Registration copy - new Registration(this.semester, this.course, this.grade) return copy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!