class for arithmetic progressionswhich inherits from the general progression class shown in code fragment geometric progression class let us next define classgeomprogressionshown in code fragment which steps through and prints out geometric progressionwhere the next value is determined by multiplying the previous value by fixed basebase