Answer:
No. The super must come first.
Taxable Interface
Here is Taxable:
- A
Taxableitem,- has a
taxRateof 6 percent, which should be adoubleconstant. - and a
calculateTax()method. which should return adoublevalue.
- has a
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.
QUESTION 10:
Fill in the blanks.