Concrete implementation of a progressive tax strategy. More...
#include <TaxSystem.h>
Public Member Functions | |
| virtual float | calculateTax (CityGrowth *growth) |
| Calculates the tax based on the progressive tax rate. | |
| virtual std::string | getStrategy () |
| Gets the name of the progressive tax strategy. | |
Public Member Functions inherited from TaxStrategy | |
| virtual | ~TaxStrategy ()=default |
| Destroys the TaxStrategy object. | |
Concrete implementation of a progressive tax strategy.
This class calculates taxes based on a progressive rate structure, where higher incomes are taxed at higher rates.
|
virtual |
Calculates the tax based on the progressive tax rate.
| growth | Pointer to a CityGrowth object used to gather relevant data for tax calculation. |
Implements TaxStrategy.
|
virtual |
Gets the name of the progressive tax strategy.
Implements TaxStrategy.