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

Method volume

Examples/NoModules/Chapter 13/Ex13_11/Box.h:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 : m_length{length}, m_width{width}, m_height{height} {};
14
15 double volume() const
16 {
17 return m_length * m_width * m_height;
18 }
19
20 int compare(const Box& box) const
21 {

Callers 2

compareMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected