Skip to main content

Part of the book series: Macmillan Computer Science Series ((COMPSS))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

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)

Publish with us

Policies and ethics