
package cib412.poo.herencia;

public class PuntoBiDimensional extends PuntoUniDimensional {
    protected int y;
    /** Creates a new instance of PuntoBiDimensional */
    public PuntoBiDimensional(int x0,int y0) {
        super(x0);
        this.y=y0;
    }
    public int getY() { return this.y;}
    public void setY(int y0) { this.y=y0;}
    public double distanciaOrigen() {
       return Math.sqrt(super.x*super.x+y*y);   
    }
}
