Abstract
A function carries out a specific task in a class. A function is an internal decomposition unit because every function belongs to a class. Object orientation promotes the reuse of class, which means that a class can be used in another application. A function can receive input data from another function when invoked; the input data passed from another function is called a parameter. The function can also return output data when it completes execution. This chapter describes class and function decomposition. The chapter also discusses the basic mechanisms for data transfer between two functions; several examples are included.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer-Verlag US
About this chapter
Cite this chapter
Garrido, J. (2009). Functions. In: Object Oriented Simulation. Springer, Boston, MA. https://doi.org/10.1007/978-1-4419-0516-1_7
Download citation
DOI: https://doi.org/10.1007/978-1-4419-0516-1_7
Published:
Publisher Name: Springer, Boston, MA
Print ISBN: 978-1-4419-0515-4
Online ISBN: 978-1-4419-0516-1
eBook Packages: Computer ScienceComputer Science (R0)