Question: Lab 9 : Design a class named Course to represent a course. ( Not the subclass of your test program; meaning that you create Lab
Lab:
Design a class named Course to represent a course. Not the subclass of your test program; meaning that you create Lab program either in type or type classes
The class contains:
The UML diagram as following.
Course
java code
courseNum: int
courseStudents: int
totalstudents: int
Course
CoursecourseN: int, nStudent: int
printCourselnfo: void
printTotalstudents: void
Write a complete test program that creates three class objects
with course number and number of students
with course number and number of students
with course number and number of students
Display the course number and number of students in the order as following.
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
