No. The super
must come first.
Here is Taxable
:
Taxable
item,
taxRate
of 6 percent,
which should be a double
constant. calculateTax()
method.
which should return a double
value.
The Taxable
interface looks like this:
interface Taxable { final double = ; double () ; }
final
means that what follows is a
constant, not a variable.
Variables are not allowed in interfaces.
Recall that final
can be omitted
since the compiler will automatically make the identifier a constant.
The = value
part cannot be omitted.
The method (in the fourth line) is public
by default.
Fill in the blanks.