Takes the height and length of a rectangle and returns the area value. More...
Public Member Functions | |
| void | set_values (int, int) |
| int | area () |
Data Fields | |
| int | x |
| int | y |
This class (CRectangle) contains four members: two input parameter members of type integer (x, y, where x=height and y=length) and two member functions (set_values, area) with public access.
This class calls the set_values member function to set the input values (x, y) to integers. This function is void, which indicates that is does not return a result; it just holds the results temporarily. It then calls the area member function, which takes the values in the set_values member function (x, y), multiplies them (x*y), and returns the result (area of the rectangle).
| [in] | x | Data member x of type integer with private access. This member is private by default. |
| [in] | y | Data member y of type integer with private access. This member is private by default. |
msc_callflow_sample.txt "Sample Callflow"
1.7.0