Last active
August 29, 2015 14:22
-
-
Save calindotgabriel/e582f95e82c0b9a467dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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