Zork Title
Java Sec 2-1 Project 5
August 16, 2018
String Tokenizer Icon
Data Structures Classwork
August 16, 2018

Deck Of Cards

Java Sec 2-1 Project 2a


Using the Card class and supporting classes such as Face and Suit from your exercise last week, create a Deck class representing a deck of cards. The class should demonstrate the Composition relationship with the Card class as shown in the UML diagram. The composition relationship here says that a Deck has an array of Card objects as an attribute and the Card objects are created by Deck’s constructor. A deck has exactly 52 cards.

Would you like to look closer at this project?
Click a button

6,092 total views, 8 views today