mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-16 06:19:45 +00:00
21 lines
546 B
Plaintext
21 lines
546 B
Plaintext
@startuml
|
|
package com.iluwatar {
|
|
class App {
|
|
- logger : Logger {static}
|
|
+ App()
|
|
+ main(args : String[]) {static}
|
|
}
|
|
class Money {
|
|
- amount : double
|
|
- currency : String
|
|
+ Money(amnt : double, curr : String)
|
|
+ addMoney(moneyToBeAdded : Money)
|
|
+ exchangeCurrency(currencyToChangeTo : String, exchangeRate : double)
|
|
+ getAmount() : double
|
|
+ getCurrency() : String
|
|
+ multiply(factor : int)
|
|
- roundToTwoDecimals(value : double) : double
|
|
+ subtractMoney(moneyToBeSubtracted : Money)
|
|
}
|
|
}
|
|
@enduml |