Create an abstract class named Course representing a course in a university with two private data members: Courseld: to represent the course number. The default value is 1. NbStudent: to represent the...


Create an abstract class named Course representing a course in a university with two private data members:<br>Courseld: to represent the course number. The default value is 1.<br>NbStudent: to represent the number of students in the section. The default value is 0.<br>o The maximum value for NbStudent is 30.<br>o Additionally, the class should also include the following methods:<br>A constructor with parameters to initialize the data members.<br>A set method named SetCourse with parameters to set Courseld and NbStudent.<br>Two get methods to return values of Courseld and NbStudent.<br>

Extracted text: Create an abstract class named Course representing a course in a university with two private data members: Courseld: to represent the course number. The default value is 1. NbStudent: to represent the number of students in the section. The default value is 0. o The maximum value for NbStudent is 30. o Additionally, the class should also include the following methods: A constructor with parameters to initialize the data members. A set method named SetCourse with parameters to set Courseld and NbStudent. Two get methods to return values of Courseld and NbStudent.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here