MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Mercedes

Class Mercedes

12.10-constexprAllocation0/main.cpp:10–12  ·  view source on GitHub ↗

#B Various concrete cars with individual speed

Source from the content-addressed store, hash-verified

8
9// #B Various concrete cars with individual speed
10struct Mercedes : Car {
11 int speed() const override { return 5; }
12};
13struct Toyota : Car {
14 int speed() const override { return 6; }
15};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected