A simple Coin Class written in C++