@startuml
scale 1.9
class Account {
- balance : MonetaryAmount
- ownerName : String

+ Account(String ownerName, String currency)
+ deposit(double amount) : void
+ withdraw(double amount) : void
+ getCurrentBalance() : MonetaryAmount
+ getOwnerName() : String
}

class MonetaryAmount {
- amount : double
- currency : String

+ MonetaryAmount(double amount, String currency)
+ addAmount(double a) : void
+ substractAmount(double a) : void
+ toString() : String
}

Account *-- MonetaryAmount


@enduml