Question: Currently you are using composition in the Card class creating Card from a Label. In this assignment you are going to use inheritance to make
Currently you are using composition in the Card class creating Card from a Label. In this assignment you are going to use inheritance to make the Card a little more efficient by deriving Card from Label Extend your Card class from Label. This will allow you to remove the getCard method because your class will now be a Card. Once you have done this go to the main class and remove the calls to getCard. In this step you are to derive Deck from ArrayList. If done correctly you should not have to make any changes to the main class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
