13.17. Exercises

  1. Follow the instructions included in Appendix A to get the latest version of Microsoft's .NET Framework running on your computer.

  2. Write a C# program that will print out the integers from 1 to 10 in reverse order.

  3. Rewrite the code in the "Overriding the Equals Method" section using auto-implemented properties. Change the test code to instantiate the Student object using object initializer syntax.

  4. Write a simple program that creates a generic List collection and fill the collection with a random series of strings. Use a method (you decide which one) from the List class to sort the strings alphabetically. Use a foreach loop to cycle through and write the sorted names out.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset