0
Using the code in class Coin as a base write in a file and do the following
1.  Create two coin objects coin1 and coin2
2.  Demonstrate that they are both show() “Heads”
3.  Demonstrate that if you turn() either of them they show “Tails” 
4.  Add a new member function to Coin called setValue which sets value attribute of a coin
5.  Add a new member function to Coin called getValue which returns the value attribute of the coin as an integer
2
Contributors
1
Reply
21
Views
6 Months
Discussion Span
Last Post by rproffitt
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.