ArrayList of objects
Create a C# program that uses a
ArrayList to store a list of people. First prepare a class called Person.cs with two properties (name and age) and a ToString() method to print the result.
Then define a
ArrayList and request the information (name and age) of three people from the user, you will have to store the information in the list. Remember that you can find the
ArrayList object in the
System.Collections namespace of the .NET Framework.
To end the program it prints the data of the people going through the list of data.
Juan - 26
Sara - 31
Carlos - 23