an arithmetic progression class our first example of specialized progression is an arithmetic progression while the default progression increases its value by one in each stepan arithmetic progression adds fixed constant to one term of the progression to produce the next for exampleusing an increment of for an arithmetic progression that starts at results in the sequence code fragment presents our implementation of an arithmeticprogression classwhich relies on progression as its base class the constructor for this new class accepts both an increment value and starting value as parametersalthough default values for each are provided by our conventionarithmeticprogression( produces the sequence and arithmeticprogression( produces the sequence the body of the arithmeticprogression constructor calls the super constructor to initialize the current data member to the desired start value then it directly establishes the new increment data member for the arithmetic progression the only remaining detail in our implementation is to override the advance method so as to add the increment to the current value class arithmeticprogression(progression)inherit from progression """iterator producing an arithmetic progression "" def init (selfincrement= start= ) """create new arithmetic progression increment the fixed constant to add to each term (default start the first term of the progression (default ""initialize base class superinit (start self increment increment override inherited version def advance(self) """update current value by adding the fixed increment "" self current +self increment code fragment class that produces an arithmetic progression