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

Method getHeight

Examples/NoModules/Chapter 12/Ex12_11/Box.h:17–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 double getLength() const { return m_length; }
16 double getWidth() const { return m_width; }
17 double getHeight() const { return m_height; }
18
19 // Functions to set member variable values (not const!)
20 void setLength(double length) { if (length > 0) m_length = length; }

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected