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

Answer:

Methods in an interface are public by default, but the implmentation in a class must explicity say public.


The Book Class

various goods as children of Goods

There is one remaining class in our example, Book, which looks like this:

Here is the class definition:


public class Book   Goods  Taxable
{
  protected String  ;

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

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

  public double 
  {
    return price *  ;
  }
}

QUESTION 13:

Fill in the blanks.


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