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

Class Car

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

Source from the content-addressed store, hash-verified

2// SPDX-License-Identifier: MIT
3
4struct Car { // #A Base class for all cars
5 virtual ~Car() = default;
6 virtual int speed() const = 0;
7};
8
9// #B Various concrete cars with individual speed
10struct Mercedes : Car {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected