Class Quadrato

java.lang.Object
  extended by Rettangolo
      extended by Quadrato
All Implemented Interfaces:
java.lang.Comparable, Poligono

public class Quadrato
extends Rettangolo


Constructor Summary
Quadrato(int p)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class Rettangolo
area, compareTo, perimetro
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quadrato

public Quadrato(int p)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Rettangolo