Methods in an interface are public
by default, but the implmentation in a class must explicity say public
.
There is one remaining class in our example, Book
, which looks like this:
Goods
author
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 * ; } }
Fill in the blanks.