Question: please help me in Java programming in simple sol. Implement the following classes: 1. class Course that includes two instance variables: private String Name: //



please help me in Java programming in simple sol.
Implement the following classes: 1. class Course that includes two instance variables: private String Name: // the course name private int ID // the course ID Your class should have the following: A constructor that initializes the two instance variables id and name Set and get methods for each instance variable. 2. class Department that includes three instance variables: private String deptName; private Course CRS [1 private int noofCourses Your class should have the following: . a constructor that initializes the department name, set noofCourses and creates the array with size noofcourses boolean exist(int) that checks whether the course object with id passed as parameter exists in the array or not. *void addCourse (int, String) creates and adds the course if the course with id passed as parameter does not exist in the array void deleteCourse (int) to delete a course if it exists in the array and displays a proper message. * void printCourses that prints the department name and all the courses in the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
