Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Product.h"
- Product::Product()
- {
- code=0;
- name="";
- price=0;
- }
- Product::Product(int ccode, string nname, double pprice)
- {
- code=ccode;
- name=nname;
- price=pprice;
- //ctor
- }
- int Product::getCode()
- {
- return code;
- }
- string Product::getName()
- {
- return name;
- }
- double Product::getPrice()
- {
- return price;
- }
- Product::~Product()
- {
- //dtor
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement