Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Card {
- public String face;
- public String suit;
- public Card() {
- face = "";
- suit = "";
- } // default constructor
- public Card(String face, String suit) {
- this.face = face;
- this.suit = suit;
- } // overloaded constructor
- public String toString() {
- return (face + " of "+suit);
- } // end toString()
- } // end class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement