אני מקווה שזה מספיק ברור אני לא יודע איך ניתן להדביק פה קוד בצורה ברורה יותר:class BombaDiscount
{
protected:
string m_name;
T* m_discountedItem;
int m_amountToBuy;
float m_discountPercentage;
string m_description;
public:
int getAmountToBuy() {return m_amountToBuy;}
void setAmountToBuy(int amountToBuy) {m_amountToBuy = amountToBuy;}
float getDiscountPercentage() {return m_discountPercentage;}
void setDiscountPercentage(float discountPercentage) {m_discountPercentage = discountPercentage;}
virtual void applyDiscount (BillItemsList& billList)=0;
};
vector<BombaDiscount> m_discounts;
