Tool1211
New member
- Joined
- Mar 6, 2023
- Messages
- 2
- Programming Experience
- Beginner
C#:
class Card
{
//Base for the Card class.
//Value: numbers 1 - 13
//Suit: numbers 1 - 4
//The 'set' methods for these properties could have some validation
// public int Value { get; set; }
// public int Suit { get; set; }
// public Card(string cardvalue, string cardsuit)
// {
// string stringValue = Value.ToString();
// string stringSuit = Suit.ToString();
// stringValue = cardvalue;
// stringSuit = cardsuit;
// }
// public override string ToString()
// {
// return Value + " of " + Suit;
// }
}