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

Method drink

Structural/Proxy/ProxyCodingExercise.cpp:20–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 void set_age(int age) { this->age=age; }
19
20 string drink() const { return "drinking"; }
21 string drive() const { return "driving"; }
22 string drink_and_drive() const { return "driving while drunk"; }
23};

Callers 2

drinkMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected