Solved: 20 - Classes and Objects
This commit is contained in:
@@ -11,8 +11,8 @@ public:
|
||||
[[nodiscard]] auto owner() const -> const std::string&;
|
||||
[[nodiscard]] auto balance() const -> double;
|
||||
|
||||
void deposit(double amount);
|
||||
auto withdraw(double amount) -> bool;
|
||||
void deposit(double amount) pre(amount > 0);
|
||||
auto withdraw(double amount) -> bool pre(amount > 0);
|
||||
|
||||
private:
|
||||
std::string owner_;
|
||||
|
||||
Reference in New Issue
Block a user