Question: Write a class called Course _ xxx that represents a course taken at a school. Represent each student using the Student class from the Chapter
Write a class called Course_xxx that represents a course taken at a school. Represent each student using the Student class from the Chapter 7 source files, Student.java. Use an ArrayList in the Course to store the students taking that course. The constructor of the Course class should accept only the name of the course. Provide a method called addStudent that accepts one Student parameter. Provide a method called roll that prints all students in the course. Create a driver class School_xxx with a main method that creates a course, adds several students, and prints a roll.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
