Skip to content

CS-Task2 #2

Open
Open
@Ptysiek

Description

@Ptysiek

In classes Alcohol, Fruit and Item add the missing methods and their implementations.

// override from Cargo
size_t getPrice() const override;
std::string getName() const override { return name_; }
size_t getAmount() const override { return amount_; }
size_t getBasePrice() const override { return base_price_; }
Cargo& operator+=(size_t amount) override;
Cargo& operator-=(size_t amount) override;
bool operator==(Cargo& cargo) const override;

https://kursy.coders.school/szkolenie.html?tid=30&lid=396

Metadata

Metadata

Assignees

No one assigned

    Labels

    MainTaskTask from CodersSchool

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions