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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.