Question: Question 3 Implement a class Course for managing the registration of student for the class. table [ [ Course ] , [ - name:

Question 3
Implement a class Course for managing the registration of student for the class.
\table[[Course],[-name: String],[-students: String[]],[-numberOfStudents: int],[+Course(name: String)],[+getName(): String],[+addStudent(student: String): void],[+getStudents(): StringU],[+getNumberOrStudents(): int]]
You need to implement the following sets of of methods for managing the registration of the student. (50 marks)
The name of the course.
The students who take the course.
The number of students (default: 0).
Creates a Course with the specified name.
Returns the course name.
Adds a new student to the course list.
Returns the students for the course.
Returns the number of students for the course.
Assignment Requirements
You are supposed to write Java program for the following questions. For every question, do provide at least THREE (3) different test cases.
 Question 3 Implement a class Course for managing the registration of

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!