disable ctor
This commit is contained in:
parent
98fdffe5fb
commit
710b4cf9fb
3 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@ class Article : public EntityUuid
|
|||
public:
|
||||
Article() = default;
|
||||
Article(int price);
|
||||
Article(const Article&) = delete;
|
||||
virtual ~Article() = default;
|
||||
|
||||
void setArticleNo(int articleNo);
|
||||
|
|
|
@ -17,6 +17,9 @@ using ArticlesVec = std::vector<Article*>;
|
|||
class Sale : public EntityUuid
|
||||
{
|
||||
public:
|
||||
Sale() = default;
|
||||
Sale(const Sale&) = delete;
|
||||
virtual ~Sale() = default;
|
||||
void addArticle(Article* articlePtr);
|
||||
void setTimestamp(const std::string& timestamp);
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ class Seller : public EntityInt
|
|||
{
|
||||
public:
|
||||
Seller() = default;
|
||||
Seller(const Seller&) = delete;
|
||||
virtual ~Seller() = default;
|
||||
Seller(const std::string& firstName, const std::string& lastName, int sellerNo = 0,
|
||||
int numArticlesOffered = 0);
|
||||
|
|
Loading…
Reference in a new issue