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

Method volume

Exercises/Modules/Chapter 21/Soln21_02/Soln21_02.cpp:64–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 {}
63
64 double volume() const { return m_length * m_width * m_height; }
65 double isSmallerThan(const Box& other) const { return volume() < other.volume(); }
66
67private:

Callers 2

isSmallerThanMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected