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:
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
Get step-by-step solutions from verified subject matter experts
