Design a data structure for generic deck of cards
Problem Design the data structures for a generic deck of cards. Explain how you would sub-class it to implement particular card games. Solution Before that lets understand deck of cards: Understanding Deck of Cards. We’ll start by defining the basic structures: Card, Deck, and Suit. Basic Components Suit Enum public enum Suit { HEARTS, DIAMONDS, CLUBS, SPADES; } ...