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

Method volume

Examples/NoModules/Chapter 12/Ex12_06/Box.h:31–34  ·  view source on GitHub ↗

Member function definition (inline because this member is defined in a header file: see online Appendix A)

Source from the content-addressed store, hash-verified

29// Member function definition
30// (inline because this member is defined in a header file: see online Appendix A)
31inline double Box::volume()
32{
33 return m_length * m_width * m_height;
34}
35
36#endif

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected