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

Method speed

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

Source from the content-addressed store, hash-verified

12};
13struct Toyota : Car {
14 int speed() const override { return 6; }
15};
16struct Tesla : Car {
17 int speed() const override { return 9; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected