Quote:How do I store the user defined values into the objects?
In your Main method you are collecting values for initializing 4 instance of the
(rather infortunate name,
could be possibly better) class.
So, create an array of
objects and initialize such objects with the values collected from the user.
Then write the sorting method (could be, for instance a static method of the
class or a standard method of a unrelated class), accepting, as parameter, an array of