Skip to content

Instantly share code, notes, and snippets.

@calindotgabriel
Created June 11, 2015 17:57
Show Gist options
  • Save calindotgabriel/361411eef7e0c45faada to your computer and use it in GitHub Desktop.
Save calindotgabriel/361411eef7e0c45faada to your computer and use it in GitHub Desktop.
#ifndef PRODUCT_H
#define PRODUCT_H
#include <string>
class Product
{
private:
int id;
std::string name;
long qty;
public:
Product();
Product(int id, std::string name, long qty);
int getId();
std::string getName();
long getQty();
};
#endif // PRODUCT_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment