interface Taxable { final double taxRate = 0.06 ; double calculateTax() ; }
Since taxRate is a constant, it must be set to a value, here, 6 percent. Here is a partial definition of Toy. Recall that it:
taxRate
Toy
Goods
minimumAge
class Toy extends Goods { int minimumAge; Toy( String des, double pr, int min) { super( des, pr ); minimumAge = min ; } void display() { super.display() ; System.out.println( "minimum age: " + minimumAge ); } public double // implementing the interface { return price * ; } }
Fill in the blanks. Click here for a