Question: Continuing from the previous practice exercises, you will be expanding your class called SetCard, which models a SET game card. All three methods should be
Continuing from the previous practice exercises, you will be expanding your class called SetCard, which models a SET game card. All three methods should be in the SetCard class, associated with the class Write a method called notSameNumber that takes a SetCard as a parameter and returns true if the other card has a different number of shapes than the card that is calling the method, returns false if the other card has the same number of shapes as the one calling the method Write a method called isNumberSet that takes two SetCard objects as parameters. This method should return true if all three cards have a different number of shapes, but false if any two or more of the cards have the same number of shapes Write a method called needNumber that take a SetCard object as a parameter and returns an int. If the parameter SetCard and the one calling the method have the same number of shapes, needNumber should return that number. If these two SetCards have different numbers of shapes, then the method should return the missing number from
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
