0
Hi guys! How to store a data of class room student details in an arrays? Is it possible?
I want store a data of our class room students. whem I call a person name or person id I need to print all information about that particular student details. help me with your suggestions.
1 Respuesta
+ 1
array will allow you to store single data type but i think you want to store multiple data like int and string. So better you create a class with all the required variable and then create a getter and setter function. After that you can create the array of objects of above getter and setter class and simply use it.
https://code.sololearn.com/c8XYZM7HZi3M/?ref=app