Exchange

The goal of this example is to show the main concepts in Object Programming and how to implement them using Java. This example is composed of successive versions. The subject is to convert a given amount in euro.
The classes which are changed from the previous version appears in bold.
  1.  Exchange.java
  2. Exchange.java
  3. Exchange.java, Currency.java
  4. Exchange.java, Currency.java
  5. exchange.Exchange.javaexchange.Currency.javaexchange.ExistingCurrencyException.java
    exchange.UnknownCurrencyException.java
    TestExchange.java
  6. exchange.Exchange.javaexchange.Currency.javaexchange.AbstractCurrency.java
    exchange.FixedRateCurrency.java
    exchange.VariableRateCurrency.java
    exchange.ExistingCurrencyException.java
    exchange.UnknownCurrencyException.java
    TestExchange.java
  7. exchange.Exchange.javaexchange.Currency.javaexchange.AbstractCurrency.java
    exchange.FixedRateCurrency.java
    exchange.VariableRateCurrency.java
    exchange.ExistingCurrencyException.java
    exchange.UnknownCurrencyException.java
    TestExchange.java