Hello fellow programmers!
Im trying to answer the following very short question but am unsure if im doing so properly or not.
Specify, design and implement a class for a card in a deck of playing cards. The object should contain methods for setting and retrieving the suit and rank of a card.
I have the following:
=======================================
class Card{
enum FACE{
ACE=1, TWO, THREE, FOUR, etc, JACK, QUEEn, KING
};
enum SUIT{
HEARTS, CLUBS, SPADES, DIAMONDS
};
private:
SUIT suit; //declaring two instance variables
FACE face;
};
=======================================
Any help is appreciated!