Write a C# program that uses a class called ClassRegistration as outlined below: The ClassRegistration class is responsible for keeping track of the student id numbers for students that register for a particular class. Each class has a maximum number of students that it can accommodate. Responsibilities of the ClassRegistration class: It is responsible for storing the student id numbers for a particular class (in an array of integers) It is responsible for adding new student id numbers to this list (returns boolean) It is responsible for checking if a student id is in the list (returns a boolean) It is responsible for getting a list of all students in the class (returns a string). It is responsible for returning the number of students registered for the class (returns an integer) It is responsible for returning the maximum number of students the class is allowed (returns an integer) It is responsible for returning the name of the class. (returns a string)
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Write a C# program that uses a class called ClassRegistration as outlined below:
The ClassRegistration class is responsible for keeping track of the student id numbers for students that register for a particular class. Each class has a maximum number of students that it can accommodate.
Responsibilities of the ClassRegistration class:
It is responsible for storing the student id numbers for a particular class (in an array of integers)
It is responsible for adding new student id numbers to this list (returns boolean)
It is responsible for checking if a student id is in the list (returns a boolean)
It is responsible for getting a list of all students in the class (returns a string).
It is responsible for returning the number of students registered for the class (returns an integer)
It is responsible for returning the maximum number of students the class is allowed (returns an integer)
It is responsible for returning the name of the class. (returns a string)
Step by step
Solved in 3 steps with 1 images