Class Square

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

class Square
extends Rectangle


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


 
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
 

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 Fri Dec 24 12:22:46 2004