Module hw06

Class ProdAcc

All Implemented Interfaces:
IAccumulator

public class ProdAcc extends AAccumulator
Accumulates the product of the values, starting with a total of 1.
Author:
swong
  • Constructor Details

    • ProdAcc

      public ProdAcc()
      Constructor for the class
  • Method Details

    • accumulate

      public void accumulate(Object x)
      Description copied from interface: IAccumulator
      Accumulates the given value into the internally stored total
      Parameters:
      x - The value to process for accumulation