Java Get Started Create Class Called Card Card Three Fields Value Suit Face Card Class Con Q37124648

In java

How to get started;

Create a class called Card. The card has threefields; a value , a suit and a face.

The card class has a constructor that takes three values for thethree fields.

Create a no-args constructor.
The Card class has three get methods to return the values of eachof the fields.

The Card class has a toString( ) method.

The Card class has a compareTo( ) method that uses the value ofthe card to determine the ordering.

Create an equals( ) method that returns true if the parameterCard has the same suit and the same face as the invoking Card.

Create a class called Deck.

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.