C++ Question
You will be writing a (rather primitive) online store simulator.It will have three classes: Product, Customer and Store. To makethings a little simpler for you, I am supplying you with the three.hpp files. You will write the three implementation files. Youshould not alter the provided .hpp files.
Here are the .hpp files: Product.hpp, Customer.hpp andStore.hpp.
#ifndef PRODUCT_HPP
#define PRODUCT_HPP
#include <string>
class Product
{
private:
std::string idCode;
std::string title;
std::string description;
double price;
int quantityAvailable;
public:
Product(std::string id, std::string t, std::string d, double p,int
qa);
std::string getIdCode();
std::string getTitle();
std::string getDescription();
double getPrice();
int getQuantityAvailable();
void decreaseQuantity();
};
#endif
#ifndef CUSTOMER_HPP
#define CUSTOMER_HPP
#include <vector>
#include “Product.hpp”
class Customer
{
private:
std::vector<std::string> cart;
std::string name;
std::string accountID;
bool premiumMember;
public:
Customer(std::string n, std::string a, bool pm);
std::string getAccountID();
std::vector<std::string> getCart();
void addProductToCart(std::string);
bool isPremiumMember();
void emptyCart();
};
#endif
#ifndef STORE_HPP
#define STORE_HPP
#include <vector>
#include <string>
#include
PayPal Gateway not configured
PayPal Gateway not configured