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

Method setHeight

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

Source from the content-addressed store, hash-verified

19 void setLength(double length) { if (length > 0) m_length = length; }
20 void setWidth(double width) { if (width > 0) m_width = width; }
21 void setHeight(double height) { if (height > 0) m_height = height; }
22
23private:
24 double m_length{1.0};

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected