Question: In java Lab 4.1: Design a class named Course to represent a course The class contains: The UML diagram as following. Course courseNum: int numOfStudents:

In java  In java Lab 4.1: Design a class named Course to represent

Lab 4.1: Design a class named Course to represent a course The class contains: The UML diagram as following. Course courseNum: int numOfStudents: int +Course() +Course(courseN: 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-Laba_2010F (run). RI runa course numbers 102i number of studenca: 20 courae number: 102 nunber of atudenta: 10 BUILD SUCCESSFUL (total time:seconda)

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!