Question: 1 . Create a class card. The class should derive from object and take a file path as a parameter. The class will have three
Create a class card. The class should derive from object and take a file path as a parameter. The class will have three properties or attributes
a The file name
b The suit of card
c The card value keep in mind if the card is an ace then it can be worth or We will NOT determine this dynamically, so you can set the value to either as your preference
d The class must implement the add operator.
e Take whatever steps necessary to insure the class does not crash at all during creation cardl Cardbeartsgit'
P cardl, value
cazdl, sult
'heazks'
card theFIIe
'hears git'
card Cardhearsagt
card value
card auit
'heartg'
card therile
'heartsgif'
both cardcard
both
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
