Class Sum

Description
  • abstract:
  • since: version 0.3
  • version: $Id: $
  • copyright: © 2002 by Derick Rethans
  • author: Derick Rethans <mailto:derick@php.net>

Located in Program_Root/Sum.php (line 17)


	
			
Direct descendents
Class Description
SumNumberElements Class for adding arrays of numbers
SumNumbers Class for adding two numbers
Variable Summary
mixed $result
string $type
Method Summary
Sum Sum (string $type)
mixed getResult ()
void sumElements (mixed $elem1, mixed $elem2)
Variables
mixed $result (line 26)
  • var: Result of the summation
string $type (line 21)
  • var: Type of the elements
Methods
Constructor Sum (line 32)

Constructor

Sum Sum (string $type)
  • string $type: The type of the elements
getResult (line 55)

Return the result of the summation

  • abstract:
mixed getResult ()
sumElements (line 45)

Sum elements

Sums elements

  • abstract:
void sumElements (mixed $elem1, mixed $elem2)
  • mixed $elem1: The first element
  • mixed $elem2: The second element

Redefined in descendants as:

Documentation generated on Tue, 18 Nov 2003 18:03:44 +0100 by phpDocumentor 1.2.2