?? employee.html
字號:
<hr>
<!-- ======== START OF CLASS DATA ======== -->
<h2>
Class Employee</h2>
<pre><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</a>
<img src="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/resources/inherit.gif" alt="extended by "><b>Employee</b>
</pre>
<hr>
<dl>
<dt><pre>public class <b>Employee</b><dt>extends <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</a></dt></pre></dt></dl>
<p>
This class models an employee. The following information is maintained:
</p><ol>
<li>the ID of the employee, an <code>int</code></li>
<li>the name of the employee, a <code>String</code></li>
<li>the salary of the employee, a <code>double</code></li>
</ol>
<p>
</p><p>
</p><dl>
<dt><b>Version:</b></dt>
<dd>1.0.0</dd>
<dt><b>Author:</b></dt>
<dd>iCarnegie</dd>
</dl>
<hr>
<p>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<a name="constructor_summary"><!-- --></a>
</p><table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="2" align="left"><font size="+2">
<b>Constructor Summary</b></font></th>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#Employee%28int,%20java.lang.String,%20double%29">Employee</a></b>(int initialId,
<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a> initialName,
double initialSalary)</code>
<br>
Creates an employee object with the specified ID, name and salary.</td>
</tr>
</tbody></table>
<!-- ========== METHOD SUMMARY =========== -->
<a name="method_summary"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="2" align="left"><font size="+2">
<b>Method Summary</b></font></th>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code> int</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#getId%28%29">getId</a></b>()</code>
<br>
Returns the ID of this employee.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code> <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a></code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#getName%28%29">getName</a></b>()</code>
<br>
Returns the name of this employee.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code> double</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#getSalary%28%29">getSalary</a></b>()</code>
<br>
Returns the salary of this employee.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code> void</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#setSalary%28double%29">setSalary</a></b>(double newSalary)</code>
<br>
Modifies the salary of this employee.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code> <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a></code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#toString%28%29">toString</a></b>()</code>
<br>
Returns the string representation of this employee in the following
format: Employee[<i>ID</i>,<i>name</i>,<i>salary</i>]</td>
</tr>
</tbody></table>
<a name="methods_inherited_from_class_java.lang.Object"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableSubHeadingColor" bgcolor="#eeeeff">
<th align="left"><b>Methods inherited from class java.lang.<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang" target="external">Object</a></b></th>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td><code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone%28%29" title="class or interface in java.lang" target="external">clone</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals%28java.lang.Object%29" title="class or interface in java.lang" target="external">equals</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize%28%29" title="class or interface in java.lang" target="external">finalize</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass%28%29" title="class or interface in java.lang" target="external">getClass</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode%28%29" title="class or interface in java.lang" target="external">hashCode</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify%28%29" title="class or interface in java.lang" target="external">notify</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll%28%29" title="class or interface in java.lang" target="external">notifyAll</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28%29" title="class or interface in java.lang" target="external">wait</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28long%29" title="class or interface in java.lang" target="external">wait</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28long,%20int%29" title="class or interface in java.lang" target="external">wait</a></code></td>
</tr>
</tbody></table>
<p>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<a name="constructor_detail"><!-- --></a>
</p><table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="1" align="left"><font size="+2">
<b>Constructor Detail</b></font></th>
</tr>
</tbody></table>
<a name="Employee(int, java.lang.String, double)"><!-- --></a><h3>
Employee</h3>
<pre>public <b>Employee</b>(int initialId,
<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a> initialName,
double initialSalary)</pre>
<dl>
<dd>Creates an employee object with the specified ID, name and salary.
<p>
</p><dl>
<dt><b>Parameters:</b></dt><dd><code>initialId</code> - the ID of the employee.</dd><dd><code>initialName</code> - the name of the employee.</dd><dd><code>initialSalary</code> - the salary of the employee.</dd></dl>
</dd></dl>
<!-- ============ METHOD DETAIL ========== -->
<a name="method_detail"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="1" align="left"><font size="+2">
<b>Method Detail</b></font></th>
</tr>
</tbody></table>
<a name="getId()"><!-- --></a><h3>
getId</h3>
<pre>public int <b>getId</b>()</pre>
<dl>
<dd>Returns the ID of this employee.
<p>
</p></dd><dd><dl>
<dt><b>Returns:</b></dt><dd>the ID of this employee.</dd></dl>
</dd>
</dl>
<hr>
<a name="getName()"><!-- --></a><h3>
getName</h3>
<pre>public <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a> <b>getName</b>()</pre>
<dl>
<dd>Returns the name of this employee.
<p>
</p></dd><dd><dl>
<dt><b>Returns:</b></dt><dd>the name of this employee.</dd></dl>
</dd>
</dl>
<hr>
<a name="getSalary()"><!-- --></a><h3>
getSalary</h3>
<pre>public double <b>getSalary</b>()</pre>
<dl>
<dd>Returns the salary of this employee.
<p>
</p></dd><dd><dl>
<dt><b>Returns:</b></dt><dd>the salary of this employee.</dd></dl>
</dd>
</dl>
<hr>
<a name="setSalary(double)"><!-- --></a><h3>
setSalary</h3>
<pre>public void <b>setSalary</b>(double newSalary)</pre>
<dl>
<dd>Modifies the salary of this employee.
<p>
</p></dd><dd><dl>
<dt><b>Parameters:</b></dt><dd><code>newSalary</code> - the new salary of this employee.</dd></dl>
</dd>
</dl>
<hr>
<a name="toString()"><!-- --></a><h3>
toString</h3>
<pre>public <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a> <b>toString</b>()</pre>
<dl>
<dd>Returns the string representation of this employee in the following
format: Employee[<i>ID</i>,<i>name</i>,<i>salary</i>]
<p>
</p></dd><dd><dl>
<dt><b>Overrides:</b></dt><dd><code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString%28%29" title="class or interface in java.lang" target="external">toString</a></code> in class <code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang" target="external">Object</a></code></dd></dl>
</dd>
<dd><dl>
<dt><b>Returns:</b></dt><dd>a string representation of this employee.</dd></dl>
</dd>
</dl>
<!-- ========= END OF CLASS DATA ========= -->
<hr>
<hr>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -