Example 1: Shuffling with Class

To cement your understanding of classes and objects, this exercise converts the deck of cards in the shuffle program from the previous chapter into a class. You’ll be surprised how easy and obvious this can be. Just follow these steps:

  1. Launch Microsoft Visual Studio .NET and create a new project named shuffleclass.

  2. Close any open windows that pertain to Form1.vb. For example, if the main code window displays a tab titled Form1.vb or Form1.vb [Design], click the tab and then its Close box.

  3. In Windows Explorer, open the folder where you created the example from the previous chapter. By default, this will be C:\Documents and Settings\user\My Documents\Visual Studio Projects\Shuffle, where user is the name of your Windows ...

Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.