1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
<p style="margin: 5px 5px 0px 5px;">
An example of a class (static) method that acts as a factory for Circle
objects. Given a radius value, this method creates a new Circle.
</p>
<h3 style="margin: 10px 0px 5px 0px">Parameters:</h3>
<table style="margin-left: 10px;">
<tr>
<td valign="top" style="margin-right:5px;">int</td>
<td valign="top" style="margin-right:5px;"><b>radius</b></td>
<td>The radius value to use for the new Circle.</td>
</tr>
</table>
<h3 style="margin: 10px 0px 5px 0px">Returns:</h3>
<table style="margin-left: 10px;">
<tr>
<td valign="top" style="margin-right:5px;"><b>Type:</b></td>
<td valign="top">Circle</td>
</tr>
</table>
<h4 style="margin: 10px 0px 5px 0px">Examples:</h4>
<table style="margin-left: 10px;">
<tr>
<td valign="top">var circle = Circle.createCircle(5);</td>
</tr>
</table>
|