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

Method setLength

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

Functions to set member variable values

Source from the content-addressed store, hash-verified

17
18 // Functions to set member variable values
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

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected