Abstract
In all the previous examples, we have implemented the behaviour of objects by writing member functions. Such functions have then been invoked or called by statements such as
initialise () ;
or for instances of an object by statements such as
history.test_first_class_mark () ;
In such cases, the function call exists as an executable statement with no arguments. The effect of the call is to cause the statements of the function to be executed; when completed, the calling function or program continues from the next statement.
Preview
Unable to display preview. Download preview PDF.
Copyright information
© 1997 J.P Pardoe and M.J. King
About this chapter
Cite this chapter
Pardoe, J., King, M. (1997). Functions. In: Object Oriented Programming Using C++. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-14449-5_9
Download citation
DOI: https://doi.org/10.1007/978-1-349-14449-5_9
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-69241-7
Online ISBN: 978-1-349-14449-5
eBook Packages: EngineeringEngineering (R0)