Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include "ItemToPurchase.h"
- void ItemToPurchase::SetName(string itemName) {
- name = itemName;
- return;
- }
- string ItemToPurchase::GetName() const {
- return name;
- }
- void ItemToPurchase::SetPrice(double itemPrice) {
- price = itemPrice;
- return;
- }
- double ItemToPurchase::GetPrice() const {
- return price;
- }
- void ItemToPurchase::SetQuantity(int itemQuantity) {
- quantity = itemQuantity;
- return;
- }
- int ItemToPurchase::GetQuantity() const {
- return quantity;
- }
- ItemToPurchase::ItemToPurchase() {
- name = "none";
- price = 0.0;
- quantity = 0;
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement