determine the next value hencegeom progression is declared as subclass of the progression class as with the arith progression classthe geomprogression class inherits the fields first and curand the methods firstvalue and printprogression from progression code fragment progressions class for geometric