mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 20:15:47 +00:00
#1313 Rename DomesticTax,ForeignTax and review fixes
This commit is contained in:
1 parent
a2967c5a40
commit
9088ac51f6
8 files changed
+29
-28
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
@@ -8,14 +8,14 @@ package com.iluwatar.separatedinterface {
|
||||
}
|
||||
}
|
||||
package com.iluwatar.separatedinterface.taxes {
|
||||
class DomesticTax {
|
||||
class DomesticTaxCalculator {
|
||||
+ TAX_PERCENTAGE : double {static}
|
||||
+ DomesticTax()
|
||||
+ DomesticTaxCalculator()
|
||||
+ calculate(amount : double) : double
|
||||
}
|
||||
class ForeignTax {
|
||||
class ForeignTaxCalculator {
|
||||
+ TAX_PERCENTAGE : double {static}
|
||||
+ ForeignTax()
|
||||
+ ForeignTaxCalculator()
|
||||
+ calculate(amount : double) : double
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,6 @@ package com.iluwatar.separatedinterface.invoice {
|
||||
}
|
||||
}
|
||||
InvoiceGenerator --> "-taxCalculator" TaxCalculator
|
||||
DomesticTax ..|> TaxCalculator
|
||||
ForeignTax ..|> TaxCalculator
|
||||
DomesticTaxCalculator ..|> TaxCalculator
|
||||
ForeignTaxCalculator ..|> TaxCalculator
|
||||
@enduml
|
||||
Reference in new issue
Block a user