/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package progression;

/**
 *
 * @author kvaradar
 */
public class ArithProgression extends Progression {

    protected long inc;

    ArithProgression() {
        this(1);
    }

    ArithProgression(long increment){
        inc = increment;
    }

    protected long nextValue() {
        cur = cur + inc;
        return cur;
    }
    
}
