9 lines
172 B
Plaintext
9 lines
172 B
Plaintext
interface Priceable {
|
|
double getPrice();
|
|
|
|
double getVAT();
|
|
|
|
default double getPriceWithVAT() {
|
|
return getPrice()+ getPrice() * getVAT();
|
|
}
|
|
} |