Question: Lab 9 : Design a class named Course to represent a course. ( Not the subclass of your test program; meaning that you create Lab

Lab9:
Design a class named Course to represent a course. (Not the subclass of your test program; meaning that you create Lab9 program either in type1 or type 3 classes)
The class contains:
The UML diagram as following.
Course
java code
q,
courseNum: int
courseStudents: int
totalstudents: int
+Course()
+Course(courseN: int, nStudent: int)
+printCourselnfo(): void
+printTotalstudents(): void
Write a complete test program that creates three class objects
with course number 101 and number of students 20
with course number 102 and number of students 10
with course number 103 and number of students 30
Display the course number and number of students in the order as following.
Lab 9 : Design a class named Course to represent

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 Programming Questions!