Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string>
- using namespace std;
- class Product {
- private:
- string name;
- double price;
- string unit;
- double amount;
- double bought;
- public:
- Product();
- Product(string Name, double Price, string Unit, double Amount);
- void setName(string name);
- void setPrice(double price);
- void setUnit(string unit);
- void setAmount(double amount);
- string getName() const;
- string getUnit() const;
- double getPrice() const;
- double getAmount() const;
- double getBought();
- void buy(double amount_buy);
- double getProfit();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement