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

Method speed

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

Source from the content-addressed store, hash-verified

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; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected