MCPcopy Create free account
hub / github.com/Apress/design-patterns-in-modern-cpp / BankAccount

Class BankAccount

Structural/Proxy/proxy.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7struct BankAccount
8{
9 virtual ~BankAccount() = default;
10 virtual void deposit(int amount) = 0;
11 virtual void withdraw(int amount) = 0;
12};
13
14struct CurrentAccount : BankAccount // checking
15{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected