// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package jaxbdemo;

public class DataB extends Data {
    private double xv;
    public DataB() {
        this(0, 0.0);
    }
    public DataB(int iv, double xv) {
        super(iv);
        this.xv = xv;
    }
    public double getXv() {
        return xv;
    }
    public void setXv(double xv) {
        this.xv = xv;
    }
    @Override
    public String toString() {
        return String.format("{ %d, %f }", getIv(), getXv());
    }
}
