Coin for Flipping

Write a CoinForFlipping class that models a coin that can be flipped, with a random result of “heads” or “tails” each time the coin is flipped.

There are just two methods to the CoinForFlipping class:

Then write a CoinFlipper main program that demonstrates the use of the CoinForFlipping class.

Questions to consider