Although I've been programming as a hobby for a while, most of it has been procedural and I've done very little OOP, and not very competent with the inheritance hierarchy of classes, which is the reason for my post here, to get a bit of advice as to whether im thinking correctly.
As a long term project I've decided to make a game of texas holdem poker and get more familiar with OOP as I go along.
First port of call is to create a class for a deck of cards, and my first question is whether a deck of cards should have a base class of card like so..
namespace CS_TexasHoldem
{
class Card
{
private char suit { get; set; }
private char value { get; set; }
public Card()
{
}
}
class Deck : Card
{
private ushort deck_count { get; set; }
public Deck()
{
deck_count = 52;
}
}
}
Of course I've only just begun, but I don't want to get too far in and realise I'm wrong.
I'm aware that there are probably ready made card classes around, but I'd not learn much from using one of them, and I'd sooner not even look at one yet (just my way of learning)
Am I on the right track? is the basic question I suppose.