enum TaxBase
{
CN_Tax,
US_Tax,
DE_Tax
};
class SalesOrder
{
TaxBase tax;
public:
double CalcaulateTax()
{
if (tax == CN_Tax)
{
}
else if (tax == US_Tax)
{
}
else if (tax == DE_Tax)
{
}
}
};
enum TaxBase
{
CN_Tax,
US_Tax,
DE_Tax
};
class SalesOrder
{
TaxBase tax;
public:
double CalcaulateTax()
{
if (tax == CN_Tax)
{
}
else if (tax == US_Tax)
{
}
else if (tax == DE_Tax)
{
}
}
};