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
0
Answer:
Dhejdnubsjisnssjsejsidndhduejdhfhbxdjeud
Similar questions
Hindi,
3 months ago
Chemistry,
3 months ago
Math,
6 months ago
Computer Science,
6 months ago
Social Sciences,
10 months ago
Math,
10 months ago