Question: in java 1) the fields for the student class are: lastName, firstName, ID, gap, credit hours, and an array of courses taken named sources. Write
in java
1) the fields for the student class are: lastName, firstName, ID, gap, credit hours, and an array of courses taken named sources.
Write the toString() method for the student class.
2) Suppose the fields of a customer are a String ID, last name, first name, balance due :
a) Write a equals method based on last name and first name b) Write a compare to method on ID c) Write a copy constructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
