We have the pieces (instances of
ParallelAlgorithmPiece), but now we must create the subclass to build and solve the brightness adjustment algorithm.
We are going to create a subclass of the
ParallelAlgorithm class and add the variables, properties, and methods needed for the brightness adjustment algorithm:
BrightnessAdjustment(a subclass of
ParallelAlgorithm), using the following declaration:
class BrightnessAdjustment : ParallelAlgorithm