/*
 * Created on 2007.03.26.
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package gyak6;

/**
 * @author bekesi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Negyzet implements Sikidom {

	Negyzet(double a0) 
	{
		a=a0;
	}
	public void aBeallit(double a0)
	{
		a=a0;
	}
	public double a()
	{
		return a;
	}
	
	private double a;
	
	
	/* (non-Javadoc)
	 * @see gyak6.Sikidom#terulet()
	 */
	public double terulet() {
		// TODO Auto-generated method stub
		return a*a;
	}

	/* (non-Javadoc)
	 * @see gyak6.Sikidom#kerulet()
	 */
	public double kerulet() {
		// TODO Auto-generated method stub
		return 4*a;
	}
	public String toString()
	{
		return "N("+a+")";
	}

}
