guyzer1954
New member
- Joined
- Jan 10, 2006
- Messages
- 4
- Programming Experience
- 5-10
I'm trying to learn about using OOP. I've created a class called Cards which has two public funtions. Shuffle() and GetNextCard(). When I create 2 instances of this class, one called Dealer and the other Player1. Dealer.Shuffle() shuffles the cards ok but Player1.GetNextCard() doesn't work because only the Dealer has the cards. Is there a way for Player1 object to get a card from the Dealer's shuffled deck?