class BMW5CostCalculator public CostCalculator CarCostCalculatorFor Al

1
2
3
4
5
6
7
class BMW5CostCalculator : public CostCalculator
{
CarCostCalculatorForAllCarTypes mCalculator;
public:
virtual ~BMW5CostCalculator() {};
virtual float calculateCost(Car* car) const {return mCalculator.getBMW5CarCost(car);}
};