123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_144) on Fri Apr 27 10:24:20 EDT 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Person (people2)</title>
  8. <meta name="date" content="2018-04-27">
  9. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
  10. <script type="text/javascript" src="script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="Person (people2)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
  23. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <div class="topNav"><a name="navbar.top">
  34. <!-- -->
  35. </a>
  36. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="index-all.html">Index</a></li>
  45. <li><a href="help-doc.html">Help</a></li>
  46. </ul>
  47. </div>
  48. <div class="subNav">
  49. <ul class="navList">
  50. <li><a href="Database.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  51. <li><a href="Staff.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  52. </ul>
  53. <ul class="navList">
  54. <li><a href="index.html?Person.html" target="_top">Frames</a></li>
  55. <li><a href="Person.html" target="_top">No&nbsp;Frames</a></li>
  56. </ul>
  57. <ul class="navList" id="allclasses_navbar_top">
  58. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  59. </ul>
  60. <div>
  61. <script type="text/javascript"><!--
  62. allClassesLink = document.getElementById("allclasses_navbar_top");
  63. if(window==top) {
  64. allClassesLink.style.display = "block";
  65. }
  66. else {
  67. allClassesLink.style.display = "none";
  68. }
  69. //-->
  70. </script>
  71. </div>
  72. <div>
  73. <ul class="subNavList">
  74. <li>Summary:&nbsp;</li>
  75. <li>Nested&nbsp;|&nbsp;</li>
  76. <li>Field&nbsp;|&nbsp;</li>
  77. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#method.summary">Method</a></li>
  79. </ul>
  80. <ul class="subNavList">
  81. <li>Detail:&nbsp;</li>
  82. <li>Field&nbsp;|&nbsp;</li>
  83. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#method.detail">Method</a></li>
  85. </ul>
  86. </div>
  87. <a name="skip.navbar.top">
  88. <!-- -->
  89. </a></div>
  90. <!-- ========= END OF TOP NAVBAR ========= -->
  91. <!-- ======== START OF CLASS DATA ======== -->
  92. <div class="header">
  93. <h2 title="Class Person" class="title">Class Person</h2>
  94. </div>
  95. <div class="contentContainer">
  96. <ul class="inheritance">
  97. <li>java.lang.Object</li>
  98. <li>
  99. <ul class="inheritance">
  100. <li>Person</li>
  101. </ul>
  102. </li>
  103. </ul>
  104. <div class="description">
  105. <ul class="blockList">
  106. <li class="blockList">
  107. <dl>
  108. <dt>Direct Known Subclasses:</dt>
  109. <dd><a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a>, <a href="Student.html" title="class in &lt;Unnamed&gt;">Student</a></dd>
  110. </dl>
  111. <hr>
  112. <br>
  113. <pre>abstract class <span class="typeNameLabel">Person</span>
  114. extends java.lang.Object</pre>
  115. <div class="block">A person class for a simple BlueJ demo program. Person is used as
  116. an abstract superclass of more specific person classes.</div>
  117. <dl>
  118. <dt><span class="simpleTagLabel">Version:</span></dt>
  119. <dd>1.0, January 1999</dd>
  120. <dt><span class="simpleTagLabel">Author:</span></dt>
  121. <dd>Michael Kölling</dd>
  122. </dl>
  123. </li>
  124. </ul>
  125. </div>
  126. <div class="summary">
  127. <ul class="blockList">
  128. <li class="blockList">
  129. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  130. <ul class="blockList">
  131. <li class="blockList"><a name="constructor.summary">
  132. <!-- -->
  133. </a>
  134. <h3>Constructor Summary</h3>
  135. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  136. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  137. <tr>
  138. <th class="colOne" scope="col">Constructor and Description</th>
  139. </tr>
  140. <tr class="altColor">
  141. <td class="colOne"><code><span class="memberNameLink"><a href="Person.html#Person-java.lang.String-int-">Person</a></span>(java.lang.String&nbsp;name,
  142. int&nbsp;yearOfBirth)</code>
  143. <div class="block">Create a person with given name and age.</div>
  144. </td>
  145. </tr>
  146. </table>
  147. </li>
  148. </ul>
  149. <!-- ========== METHOD SUMMARY =========== -->
  150. <ul class="blockList">
  151. <li class="blockList"><a name="method.summary">
  152. <!-- -->
  153. </a>
  154. <h3>Method Summary</h3>
  155. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  156. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  157. <tr>
  158. <th class="colFirst" scope="col">Modifier and Type</th>
  159. <th class="colLast" scope="col">Method and Description</th>
  160. </tr>
  161. <tr id="i0" class="altColor">
  162. <td class="colFirst"><code><a href="Address.html" title="class in &lt;Unnamed&gt;">Address</a></code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#getAddress--">getAddress</a></span>()</code>
  164. <div class="block">Return the address of this person.</div>
  165. </td>
  166. </tr>
  167. <tr id="i1" class="rowColor">
  168. <td class="colFirst"><code>java.lang.String</code></td>
  169. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#getName--">getName</a></span>()</code>
  170. <div class="block">Return the name of this person.</div>
  171. </td>
  172. </tr>
  173. <tr id="i2" class="altColor">
  174. <td class="colFirst"><code>int</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#getYearOfBirth--">getYearOfBirth</a></span>()</code>
  176. <div class="block">Return the birth year of this person.</div>
  177. </td>
  178. </tr>
  179. <tr id="i3" class="rowColor">
  180. <td class="colFirst"><code>void</code></td>
  181. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#setAddress-java.lang.String-java.lang.String-java.lang.String-">setAddress</a></span>(java.lang.String&nbsp;street,
  182. java.lang.String&nbsp;town,
  183. java.lang.String&nbsp;postCode)</code>
  184. <div class="block">Set a new address for this person.</div>
  185. </td>
  186. </tr>
  187. <tr id="i4" class="altColor">
  188. <td class="colFirst"><code>void</code></td>
  189. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#setName-java.lang.String-">setName</a></span>(java.lang.String&nbsp;newName)</code>
  190. <div class="block">Set a new name for this person.</div>
  191. </td>
  192. </tr>
  193. <tr id="i5" class="rowColor">
  194. <td class="colFirst"><code>void</code></td>
  195. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#setYearOfBirth-int-">setYearOfBirth</a></span>(int&nbsp;newYearOfBirth)</code>
  196. <div class="block">Set a new birth year for this person.</div>
  197. </td>
  198. </tr>
  199. <tr id="i6" class="altColor">
  200. <td class="colFirst"><code>java.lang.String</code></td>
  201. <td class="colLast"><code><span class="memberNameLink"><a href="Person.html#toString--">toString</a></span>()</code>
  202. <div class="block">Return a string representation of this object.</div>
  203. </td>
  204. </tr>
  205. </table>
  206. <ul class="blockList">
  207. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  208. <!-- -->
  209. </a>
  210. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  211. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  212. </ul>
  213. </li>
  214. </ul>
  215. </li>
  216. </ul>
  217. </div>
  218. <div class="details">
  219. <ul class="blockList">
  220. <li class="blockList">
  221. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  222. <ul class="blockList">
  223. <li class="blockList"><a name="constructor.detail">
  224. <!-- -->
  225. </a>
  226. <h3>Constructor Detail</h3>
  227. <a name="Person-java.lang.String-int-">
  228. <!-- -->
  229. </a>
  230. <ul class="blockListLast">
  231. <li class="blockList">
  232. <h4>Person</h4>
  233. <pre>Person(java.lang.String&nbsp;name,
  234. int&nbsp;yearOfBirth)</pre>
  235. <div class="block">Create a person with given name and age.</div>
  236. </li>
  237. </ul>
  238. </li>
  239. </ul>
  240. <!-- ============ METHOD DETAIL ========== -->
  241. <ul class="blockList">
  242. <li class="blockList"><a name="method.detail">
  243. <!-- -->
  244. </a>
  245. <h3>Method Detail</h3>
  246. <a name="getAddress--">
  247. <!-- -->
  248. </a>
  249. <ul class="blockList">
  250. <li class="blockList">
  251. <h4>getAddress</h4>
  252. <pre>public&nbsp;<a href="Address.html" title="class in &lt;Unnamed&gt;">Address</a>&nbsp;getAddress()</pre>
  253. <div class="block">Return the address of this person.</div>
  254. </li>
  255. </ul>
  256. <a name="getName--">
  257. <!-- -->
  258. </a>
  259. <ul class="blockList">
  260. <li class="blockList">
  261. <h4>getName</h4>
  262. <pre>public&nbsp;java.lang.String&nbsp;getName()</pre>
  263. <div class="block">Return the name of this person.</div>
  264. </li>
  265. </ul>
  266. <a name="getYearOfBirth--">
  267. <!-- -->
  268. </a>
  269. <ul class="blockList">
  270. <li class="blockList">
  271. <h4>getYearOfBirth</h4>
  272. <pre>public&nbsp;int&nbsp;getYearOfBirth()</pre>
  273. <div class="block">Return the birth year of this person.</div>
  274. </li>
  275. </ul>
  276. <a name="setAddress-java.lang.String-java.lang.String-java.lang.String-">
  277. <!-- -->
  278. </a>
  279. <ul class="blockList">
  280. <li class="blockList">
  281. <h4>setAddress</h4>
  282. <pre>public&nbsp;void&nbsp;setAddress(java.lang.String&nbsp;street,
  283. java.lang.String&nbsp;town,
  284. java.lang.String&nbsp;postCode)</pre>
  285. <div class="block">Set a new address for this person.</div>
  286. </li>
  287. </ul>
  288. <a name="setName-java.lang.String-">
  289. <!-- -->
  290. </a>
  291. <ul class="blockList">
  292. <li class="blockList">
  293. <h4>setName</h4>
  294. <pre>public&nbsp;void&nbsp;setName(java.lang.String&nbsp;newName)</pre>
  295. <div class="block">Set a new name for this person.</div>
  296. </li>
  297. </ul>
  298. <a name="setYearOfBirth-int-">
  299. <!-- -->
  300. </a>
  301. <ul class="blockList">
  302. <li class="blockList">
  303. <h4>setYearOfBirth</h4>
  304. <pre>public&nbsp;void&nbsp;setYearOfBirth(int&nbsp;newYearOfBirth)</pre>
  305. <div class="block">Set a new birth year for this person.</div>
  306. </li>
  307. </ul>
  308. <a name="toString--">
  309. <!-- -->
  310. </a>
  311. <ul class="blockListLast">
  312. <li class="blockList">
  313. <h4>toString</h4>
  314. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  315. <div class="block">Return a string representation of this object.</div>
  316. <dl>
  317. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  318. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  319. </dl>
  320. </li>
  321. </ul>
  322. </li>
  323. </ul>
  324. </li>
  325. </ul>
  326. </div>
  327. </div>
  328. <!-- ========= END OF CLASS DATA ========= -->
  329. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  330. <div class="bottomNav"><a name="navbar.bottom">
  331. <!-- -->
  332. </a>
  333. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  334. <a name="navbar.bottom.firstrow">
  335. <!-- -->
  336. </a>
  337. <ul class="navList" title="Navigation">
  338. <li><a href="package-summary.html">Package</a></li>
  339. <li class="navBarCell1Rev">Class</li>
  340. <li><a href="package-tree.html">Tree</a></li>
  341. <li><a href="index-all.html">Index</a></li>
  342. <li><a href="help-doc.html">Help</a></li>
  343. </ul>
  344. </div>
  345. <div class="subNav">
  346. <ul class="navList">
  347. <li><a href="Database.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  348. <li><a href="Staff.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  349. </ul>
  350. <ul class="navList">
  351. <li><a href="index.html?Person.html" target="_top">Frames</a></li>
  352. <li><a href="Person.html" target="_top">No&nbsp;Frames</a></li>
  353. </ul>
  354. <ul class="navList" id="allclasses_navbar_bottom">
  355. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  356. </ul>
  357. <div>
  358. <script type="text/javascript"><!--
  359. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  360. if(window==top) {
  361. allClassesLink.style.display = "block";
  362. }
  363. else {
  364. allClassesLink.style.display = "none";
  365. }
  366. //-->
  367. </script>
  368. </div>
  369. <div>
  370. <ul class="subNavList">
  371. <li>Summary:&nbsp;</li>
  372. <li>Nested&nbsp;|&nbsp;</li>
  373. <li>Field&nbsp;|&nbsp;</li>
  374. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  375. <li><a href="#method.summary">Method</a></li>
  376. </ul>
  377. <ul class="subNavList">
  378. <li>Detail:&nbsp;</li>
  379. <li>Field&nbsp;|&nbsp;</li>
  380. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  381. <li><a href="#method.detail">Method</a></li>
  382. </ul>
  383. </div>
  384. <a name="skip.navbar.bottom">
  385. <!-- -->
  386. </a></div>
  387. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  388. </body>
  389. </html>