Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started