MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Shape

Method Shape

Exercises/NoModules/Chapter 15/Soln15_06/Shapes.h:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11public:
12 Shape(const Point& position) : m_position {position} {}
13 virtual ~Shape() = default; // Remember: always use virtual destructors for base classes!
14
15 virtual double area() const = 0; // Pure virtual function to compute a shape's area

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected