Class reference
Hi Tararak:
I'm assuming that you added the new class to the project in the standard manner. If not, you can use the Project->Add Exiting Item to add the class source code file to the project. Once you have done that, you can create an instance of the object using the syntax shown in the book, such as:
clsCardDeck myDeck = newclsCardDeck();
From that definition, you can use myDeck to reference the CardDeck object. See if that fixes your problem.
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|