[Solved] StandardCard

30 $

File Name: StandardCard.zip
File Size: 113.04 KB

SKU: [Solved] StandardCard Category: Tag:

Or Upload Your Assignment Here:


Consider the provided abstract Card class. You will implement a concrete subclass called StandardCard. You will also modify the Card class by adding appropriate (hidden) state.

A standard deck of cards consist of 52 cards. Each card has a rank (2, 3, …, 9, 10, Jack, Queen, King, Ace) and a suit (spades, hearts, clubs, diamonds).

The ordering of standard cards is first specified by suits and then by rank if two cards have the same suits. The ordering of suits is

diamonds < clubs < hearts < spades

If two standard cards have the same suit, then ordering is based on rank as follows

2 < 3 < ... < 9 < 10 < Jack < Queen < King < Ace

Two standard cards with the same suit and rank are equal to each other.

Be sure that all inherited methods are implemented as specified (either in this document or in the comments of Card).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] StandardCard
30 $