Create a class named School that contains fi elds for the School name and number of students enrolled and properties for each fi eld. Also, include an IComparable.CompareTo() method so that School objects can be sorted by enrollment. Write a program that allows a user to enter information about fi ve School objects. Display the School objects in order of enrollment size from smallest to largest School. Save the program as SchoolsDemo.cs.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here