Decorator Pattern Example

A while ago, I worked on a problem which is frequently encountered on some programming books and job interviews. The problem goes like this: SALES TAXES Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. Import duty is an additional sales tax […]