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

Method setWidth

Examples/NoModules/Chapter 20/Ex20_08/Box.h:18–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17 void setLength(double length) { if (length > 0) m_length = length; }
18 void setWidth(double width) { if (width > 0) m_width = width; }
19 void setHeight(double height) { if (height > 0) m_height = height; }
20
21 // Function to calculate the volume of a box

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected