Question: solve using java Class Faculty that extends class Person and has the following: - Instance variables: array of Courses with a size of 100 -
Class Faculty that extends class Person and has the following: - Instance variables: array of Courses with a size of 100 - Constructor that takes the name and address as arguments: initializes the instance variables (name and address), and create the array of Courses. - addCourse(): adds a course to the Faculty courses array if the course does not exist, return false if the course already exist. Make sure you don't exceed the array size limit when you add a course. - removeCourse(courseName): removes the course from the array, returns false if the course does not exist - toString(): that prints the Faculty name along with all the courses names
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
