way of identifying the current value as well we begin by defining classprogressionshown in code fragment which defines the standard fields and methods of numeric progression specificallyit defines the following two long-integer fieldsfirstfirst value of the progressioncurcurrent value of the progressionand the following three methodsfirstvalue()reset the progression to the first valueand return that value nextvalue()step the progression to the next value and return that value printprogression( )reset the progression and print the first values of the progression we say that the method printprogression has no output in the sense that it does not return any valuewhereas the methods firstvalue and nextvalue both return long-integer values that isfirstvalue and nextvalue are functionsand printprogression is procedure the progression class also includes method progression()which is constructor recall that constructors set up all the instance variables at the time an object of this class is created the progression class is meant to be general superclass from which specialized classes inheritso this constructor is code that will be included in the constructors for each class that extends the progression class code fragment class general numeric progression