Advertisement

Advanced Uses of Functions

  • Oliver Grillmeyer
Chapter
Part of the Undergraduate Texts in Computer Science book series (UTCS)

Abstract

There are three legal ways to specify parameters in a function definition. We have used the simplest method in which each parameter is given a unique name that matches directly with an argument when the function is called. These functions must be called with a fixed number of arguments. We can create functions that take a variable number of arguments. This is done by specifying one parameter after the function name and a period (making a function heading that looks like a dotted list). When the function is called, the arguments will be in a list that is bound to the single parameter.

Keywords

Return Function Global Variable Class Variable Recursive Call Instance Variable 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Additional Reading

  1. Booch, G. (1994). Object-Oriented Analysis and Design with Applications, Second edition, Benjamin Cummings, Redwood City, CA.Google Scholar
  2. Budd, T. (1997). An Introduction to Object-Oriented Programming, Second edition, Addison-Wesley, Reading, MA.Google Scholar
  3. Keene, S.E. (1989). Object-Oriented Programming in Common LISP: A Programmer’s Guide to CLOS, Addison-Wesley, Reading, MA.zbMATHGoogle Scholar
  4. Kiczales, G., Des Rivieres, J., and Bobrow, D.G. (1991). The Art of the Metaobject Protocol, MIT Press, Cambridge, MA.Google Scholar
  5. Taylor, D.A. (1990). Object-Oriented Technology: A Manager’s Guide, Addison-Wesley, Reading, MA.Google Scholar
  6. Wilkinson, N.M. (1995). Using CRC Cards: An Informal Approach to Object-Oriented Development SIGS Books, New York, NY.Google Scholar
  7. Winblad, A.L., Edwards, S.D., and King, D.R. (1990). Object-Oriented Soßware, Addison-Wesley, Reading, MA.Google Scholar

Copyright information

© Springer Science+Business Media New York 1998

Authors and Affiliations

  • Oliver Grillmeyer
    • 1
  1. 1.Department of Computer ScienceUniversity of California at BerkeleyBerkeleyUSA

Personalised recommendations