go to previous page   go to home page   go to next page

Answer:

See below.


The Completed Book Class

public class Book  extends Goods implements Taxable
{
  protected String author;

  public Book( String des, double pr, String auth)
  {
    super( des, pr );
    author  = auth ;
  }


  public String toString()
  {
    return super.toString() + " author: " + author ;
  }

  public double calculateTax()
  {
    return price * TAXRATE ;
  }
}

QUESTION 14:

Is the TAXRATE for Book the same as for Toy?


go to previous page   go to home page   go to next page