Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma
- #include <iostream>
- class InventoryItem {
- private:
- int id;
- float price;
- public:
- int getId() {
- return id;
- }
- float getPrice() {
- return price;
- }
- InventoryItem() {
- id = 0;
- price = 0;
- }
- InventoryItem(int _id, float _price) {
- id = _id;
- price = _price;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement