
package cib412.poo.herencia;

public class PuntoUniDimensional {
    protected int x;
    /** Creates a new instance of PuntoUniDimensional */
    public PuntoUniDimensional(int x0) {
        this.x = x0;
    }
    public int getX() { return this.x;}
    public void setX(int x0) { this.x =x0;}
    public double distanciaOrigen() {
       return this.x;   
    }
}
