package Examen;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author felix
 */
public class Punto {
    private double x;
    private double y;
    
    public Punto(double unaX, double unaY){
        x = unaX;
        y = unaY;
    }
    
    @Override
    public String toString() {
        return "[" + x + ", " + y +"]";
    }
    
    public double getX(){
        return x;
    }
    
    public double getY() {
        return y;
    }
    
}
