JAVA
Posted: Sat May 14, 2022 7:46 pm
JAVA
Part 1.3. Write a main() method. Assume it is implemented inside of the Course class. a) Create anew Hybridcenuse using a no-as constructor and assign it to the object reference variable of type Course. b) Set the value of number of studentsEnrolled to 20. c) Create a new Hybrid.Conuse using the second constructor, presented on the UML. d) Increment the numberOfstudentsEnrolled by 18. e) Display a description of all objects you created on the console. f) Display the total number of Enrolled Students.
Part 1.3. Write a main() method. Assume it is implemented inside of the Course class. a) Create anew Hybridcenuse using a no-as constructor and assign it to the object reference variable of type Course. b) Set the value of number of studentsEnrolled to 20. c) Create a new Hybrid.Conuse using the second constructor, presented on the UML. d) Increment the numberOfstudentsEnrolled by 18. e) Display a description of all objects you created on the console. f) Display the total number of Enrolled Students.