diff --git a/src/core/article.cpp b/src/core/article.cpp index b56c413..b798fbb 100644 --- a/src/core/article.cpp +++ b/src/core/article.cpp @@ -16,4 +16,6 @@ bool Article::isSold() { return salePtr_ ? true : false; } std::string Article::getDescription() { return description_; } -Seller* Article::getSeller() { return sellerPtr_.get(); } \ No newline at end of file +Seller* Article::getSeller() { return sellerPtr_.get(); } + +int Article::getPrice() { return price_; } \ No newline at end of file diff --git a/src/core/article.h b/src/core/article.h index 4042924..03ceaf0 100644 --- a/src/core/article.h +++ b/src/core/article.h @@ -9,6 +9,7 @@ #include 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 sellerPtr_{};