Class Square
Object
|
+--Shape
|
+--Rectangle
|
+--Square
- class
Square
- extends Rectangle
A Square is a subclass of Rectangle
Defined in test.js
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.
|
Square
Square(<int> width, <int> height)
Create a new Square instance.
Parameters:
width
- The optional width for this Rectangle
height
- The optional height for this Rectangle
setHeight
void setHeight(<int> height)
Set the height value for this Square
Sets the height attribute in the Rectangle.
Parameters:
height
- The height value to be set
setWidth
void setWidth(<int> width)
Set the width value for this Square.
Parameters:
width
- The width value to be set
Documentation generated by
JSDoc on Sun Apr 17 10:08:53 2005