Class Square

Object
   |
   +--Shape
         |
         +--Rectangle
               |
               +--Square

class Square
extends Rectangle


A Square is a subclass of Rectangle
Defined in test.js


Field Summary
 Object height
          
 Object width
          
   
Fields inherited from class Shape
color, border
 
Constructor Summary
Square(<int> width, <int> height)
            Create a new Square instance.
 
Method Summary
 void setHeight(<int> height)
           Set the height value for this Square Sets the height attribute in the Rectangle.
 void setWidth(<int> width)
           Set the width value for this Square.
 
Methods inherited from class Rectangle
getClassName, getWidth, getHeight, getArea
   
Methods inherited from class Shape
getCoords, getColor, setCoords, setColor, clone
 

Field Detail

height

Object height

width

Object width

Constructor Detail

Square

Square(<int> width, <int> height)

Method Detail

setHeight

void setHeight(<int> height)

setWidth

void setWidth(<int> width)


Documentation generated by JSDoc on Mon Mar 2 10:39:07 2009