Skip to content

Instantly share code, notes, and snippets.

@calindotgabriel
Last active August 29, 2015 14:22
Show Gist options
  • Save calindotgabriel/e582f95e82c0b9a467dd to your computer and use it in GitHub Desktop.
Save calindotgabriel/e582f95e82c0b9a467dd to your computer and use it in GitHub Desktop.
#include "product.h"
Product::Product() : id(0), name(""), qty(0.0) { }
Product::Product(int id, std::string name, long qty):
id(id), name(name), qty(qty) { }
int Product::getId() {
return id;
}
std::string Product::getName() {
return name;
}
long Product::getQty() {
return qty;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment