Exercise: Money value object - 1

Program an unchangeable money value object to represent amounts of money in a specific currency. Only write the code that you need to fulfill the task at hand.

  1. Create the basic structure for a money value object that supports the currencies EUR and USD. You could use an enum to represent the currency. Always use an int for the (cent) amount. Only add the methods to your value object that you actually need.

For subtask 2