Running the program

Now, let's take a look. Open the program in your browser and click on the Sort And Show button. The results are shown in Figure 3.3.3:

Figure 3.3.3: The results of running the program

This is indeed the perimeter of the rectangle.

These are the basics of upcasting, downcasting, and implementing a generic interface such as IComparable. This is really complex code, but I hope you've learned a lot.