FileDocCategorySizeDatePackage
Strategy.javaAPI DocExample2025Fri Nov 03 11:08:42 GMT 2006None

TaxPayer

public abstract class TaxPayer extends Object

Fields Summary
public long
income
private TaxStrategy
strategy
Constructors Summary
public TaxPayer(long income, TaxStrategy strategy)

    this.income = income; this.strategy = strategy;
  
Methods Summary
public longcomputeTax()

 return strategy.computeTax(getThis()); 
public longgetIncome()

 return income; 
protected abstract PgetThis()