Question: Write the Java interface for the class CollegeStudent LISTING C-3 The class Co1legeStudent 1 2 3 4 5 6 7 8 9 10 11 12

Write the Java interface for the class CollegeStudent 1 2 3 4 5 6 7 8 9 10 11 12

LISTING C-3 The class Co1legeStudent

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 LISTING C-3 The class public class Col legeStudent extends Student // Year of graduation private int year; // Degree sought private String degree; public CollegeStudent() super() ; year = O; // Must be first statement in constructor degree = // end default constructor public CollegeStudent(Name studentName, String student ld, int graduationYear, String degreeSought) // Must be first super (studentName, student ld) ; = graduationYear; year degree = degreeSought; } // end constructor public void setStudent(Name studentName, String student ld, int graduationYear, String degreeSought) // NOT fullName - setName(studentName) ; - studentName; // NOT id = setld(studentld) ; student ld; Or setStudent(studentName, studentld) ; (see Segment C. 16) = graduationYear; year degree = degreeSought; } // end setStudent public String toString() return super.toString() + } // end toString // end CollegeStudent + degree + + year;

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!