+ 1

How do I save class objects into a list?

I have a class with its variables and constructors and everything and a method that asks the user for that information, my question is how do I save what the user inputs into a list? thanks

26th Sep 2017, 10:25 PM
Alvaro Brandón Piaggio
Alvaro Brandón Piaggio - avatar
1 Antwort
+ 3
list <myclass> = new list <myclass>; list can be used in a generic way so any type can be between the < > I hope this answers your question. Maybe you were looking for sonething totally different like file.io , xml-files or database solution.
26th Sep 2017, 10:28 PM
sneeze
sneeze - avatar