more on article

This commit is contained in:
Martin Brodbeck 2018-07-12 13:36:13 +02:00
parent 7063637ad4
commit 2c5368c621
2 changed files with 5 additions and 1 deletions

View File

@ -16,4 +16,6 @@ bool Article::isSold() { return salePtr_ ? true : false; }
std::string Article::getDescription() { return description_; }
Seller* Article::getSeller() { return sellerPtr_.get(); }
Seller* Article::getSeller() { return sellerPtr_.get(); }
int Article::getPrice() { return price_; }

View File

@ -9,6 +9,7 @@
#include <string>
class Seller;
class Sale;
class Article : public Entity
{
@ -24,6 +25,7 @@ class Article : public Entity
std::string getDescription();
Seller* getSeller();
int getPrice();
private:
std::shared_ptr<Seller> sellerPtr_{};