Solved: 20 - Classes and Objects
This commit is contained in:
1 parent
8b82257ed6
commit
564cc1b765
3 files changed
+14
-9
No files matched your search
@@ -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