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:
final
means that what follows is a
constant, not a variable.
Variables are not allowed in interfaces.
In fact, the final
can be omitted
since the compiler will automatically make the identifier a constant.
The = value
The method declaration (in the second line) is public
by default.
Fill in the blanks.