Question: need help fixing my java code Driver _ SchoolDB i cant put in my entire code because it wont fit but can you help me
need help fixing my java code DriverSchoolDB
i cant put in my entire code because it wont fit but can you help me Course isGraduateCourse: boolean courseNum: int courseDept: String numCredits: int Courseboolean isGraduateCourse, int courseNum, String courseDept, int numCredits isGraduateCourse: boolean getCourseNum: int getCourseDept: String getNumCredits: int getCourseName: String return String of U or G courseDept courseNum equalsObject obj: boolean all attributes must match for Course objects to be considered equal toString: String Course: sd Number of Credits: d GraduateUndergraduate courseDept, courseNum, numCredits, isGraduateCourse compareToCourse c: int use the Comparable interface specification. Sort by courseNum Person name: String birthYear: int Person name birthYear PersonString name, int birthYear getName:String getBirthYear:int setNameString name: void setBirthYearint year: void equalsObject obj: boolean all attributes must match for Person objects to be considered equal toString: String Person: Name: s Birth Year: d name, birthYear compareToPerson p: int use the Comparable interface specification. Sort by birthYear. Employee extends Person deptName: String numEmployees: static int employeeID: int generated Employee deptName employeeID computed EmployeeString deptName employeeID computed EmployeeString name, int birthYear, String deptName employeeID computed getDeptName: String static getNumEmployees: int getEmployeeID: int setDeptNameString deptName: void equalsObject obj: boolean all attributes inheritedlocal must match for Employee objects to be considered equal toString: String Employee: Department: s Employee Number: d deptName, employeeID compareToPerson p: int use the Comparable interface specification. Sort by employeeID Faculty extends Employee coursesTaught: Course you can assume that the maximum number of courses a faculty has taught cannot exceed numCoursesTaught: int controlled variable isTenured: boolean Faculty coursesTaught numCoursesTaught isTenured false Facultyboolean isTenured coursesTaught numCoursesTaught this.isTenured isTenured FacultyString deptName, boolean isTenured FacultyString name, int birthYear, String deptName, boolean isTenured isTenured:boolean getNumCoursesTaught: int setIsTenuredboolean isTenured: void addCourseTaughtCourse course: void appends course to the end of the existing array addCoursesTaughtCourse courses: void appends courses to the end of the existing array getCourseTaughtint index: Course note: index must be verified. Return null if invalid getCourseTaughtAsStringint index: String note: index must be verified. Return if invalid returns courseDeptcourseNum getAllCoursesTaughtAsString: String comma separated list of all courses taught uses getCourseTaughtAsStringint index as a helper method equalsObject obj: boolean all attributes inheritedlocal must match for Faculty objects to be considered equal toString: String Faculty: s Number of Courses Taught: d Courses Taught: s Is TenuredNot Tenured numCoursesTaught, getAllCoursesTaughtAsString compareToPerson p: int use the Comparable interface specification, sort by numCoursesTaught GeneralStaff: extends Employee duty: String GeneralStaff duty GeneralStaffString duty GeneralStaffString deptName, String duty GeneralStaffString name, int birthYear, String deptName, String duty getDuty: String equalsObject obj: boolean all attributes inheritedlocal must match for Staff objects to be considered equal toString: String GeneralStaff: Duty: s duty Note: do not override the inherited compareTo from the Employee class use as is Student: extends Person numStudents: static int studentID: int generated coursesTaken: Courseinitialize to length of numCoursesTaken: int controlled variable isGraduate: boolean major:String undeclared default value Student coursesTaken numCoursesTaken isGraduate false Studentboolean isGraduate StudentString major, boolean isGraduate StudentString name, int birthYear, String major, boolean isGraduate isGraduate:boolean getNumCoursesTaken: int static getNumStudents: int getStudentID: int getMajor: String setIsGraduateboolean isGraduate: void setMajorString major:void addCourseTakenCourse c
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
