India Languages, asked by yumiko9067, 4 months ago

1. 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
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 "students" count can be 10.

Answers

Answered by shruti8398
2

Answer:

marry marry marry marry

Similar questions