Question: Design a class named Course to represent a course. The class contains: The UML diagram as following Course courseNum: int numofStudents: int +Course() +CourselcourseN: int,

 Design a class named Course to represent a course. The class

Design a class named Course to represent a course. The class contains: The UML diagram as following Course courseNum: int numofStudents: int +Course() +CourselcourseN: int, nStudent: int) +printCourselnfo(): void Write a test program that creates two class objects 1. with course number 101 and number of students 20 2. with course number 102 and number of students 10 Display the course number and number of students in the order as following. Output-Lab4 2018F (run)X runt COurse number: 101 numbez of students: 20 couzse numbez: 202 number of students: 10 ULD SUCCESSEUL (cotal tie nds

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!