User-Defined Types

  • Dirk Vermeir


Functions (Section 1.4, Chapter 3) are convenient tools to abstract behaviour and computation. E.g. once the function sqrt (double) has been properly defined, one does not need to remember how it computes its result in order to use it. Moreover, if one prefers an alternative algorithm for the computation of sqrt (double), it is easy to change just the function body of the definition, without disturbing the rest of the program’s code. One can say that the computation of sqrt (double) is encapsulated inside its definition which can be changed at will, as long as the specification of the function, i.e. its interface, remains the same.


Class Object Class Definition Rational Class Conversion Function Assignment Operator 
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.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London 2001

Authors and Affiliations

  • Dirk Vermeir
    • 1
  1. 1.Department of Computer ScienceFree University of BrusselsBrusselsBelgium

Personalised recommendations