Create a default constructor that simply sets the Card to back of the card image. This should
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a default constructor that simply sets the Card to back of the card image. This should be image 155. Again you should keep one code path by delegating the constructor.
Step 2 -Modify The Game
Now that you have working constructors you can remove the call to setImage. Where the game is being reset you can simply create the Card by calling the default constructor. In the handle method you can use the overloaded constructor to load the card from the random number that was generated.
Before moving on, test to make sure that your game is not broken. If it is go back and see if you can fix whatever error you are having.
I dont understand about setimage method which in turn calls the loadCard!!!
Related Book For
Posted Date: