English, asked by stargirl2952, 7 months ago

Student list using object array
Given a Student class, create a class with following characteristics
The class name should be Classroom.
Private variable students to maintain the list of Student objects.
Function addStudent with input parameter name (string) and rollNo(int) adds a new student in students" list. Method getAllStudents should return all the students in ClassRoom.
Input
Jack
1 1
Jones
2
Marry
3
where,
First & Second line represent a student's name and roll number. And so on.
Output
1- Jack
2 - Jones
3 - Marry
Assume that
Maximum "student" count can be 10.

Answers

Answered by Sashabkpathak993
0

Answer:

Dhejdnubsjisnssjsejsidndhduejdhfhbxdjeud

Similar questions