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

Method area

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

Source from the content-addressed store, hash-verified

54 {}
55
56 double area() const override { return m_width * m_height; }
57 double perimeter() const override { return 2 * (m_width + m_height); }
58
59 void scale(double factor) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected