Complete Source Code


I am the idea for something taxable.

Java interface = idea.

Note that we do not need to declare
interface methods public. They are public
by default.
package taxcalc.model;

import java.math.BigDecimal;

public interface Taxable {
	
	/*Answers the price of the item before
	tax is applied. A BigDecimal is used
	for accuracy. */
	BigDecimal beforeTaxPrice();
}