Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

ItemToPurchase.cpp

#include <iostream>
using namespace std;
#include "ItemToPurchase.h"
ItemToPurchase::ItemToPurchase(){
    itemName = "none";
    itemDescription = "none";
    itemPrice = 0;
    itemQuantity = 0;
    return;
}
ItemToPurchase::ItemToPurchase(stringName,stringDescription,intPrice,intQuantity){
    itemName=name;
    itemDescription=description;
    itemPrice= Prices;
    itemQuantity = quantities;
    return;
}
void ItemToPurchase::SetName(stringName){
    itemName=name;
    return;
}
void ItemPurchase::SetName(stringDescription){
    itemDescription= Description;
    return;
}
void ItemToPurchase::SetName(intPrice){
    itemPrice= Prices
    return;
}
void ItemToPurchase::SetName(intQuantity){
    itemQuantity= quantities;
    return;
}
string ItemToPurchase::GetName()const{
    return itemName;
}
string ItemToPurchase::GetDescription()const{
    return itemDescription;
}
string ItemToPurchase::GetPrice()const{
    return itemPrice;
}
string ItemToPurchase::GetQuantity()const{
    return itemQuantity;
}
void ItemToPurchase::Print(){
    cout << itemName <<';' << itemDescription << endl;
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.