another early Lab using BlueJ.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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>Student (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="Student (people2)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":10,"i1":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="Staff.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  51. <li>Next&nbsp;Class</li>
  52. </ul>
  53. <ul class="navList">
  54. <li><a href="index.html?Student.html" target="_top">Frames</a></li>
  55. <li><a href="Student.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 Student" class="title">Class Student</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><a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>Student</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. </li>
  108. </ul>
  109. <div class="description">
  110. <ul class="blockList">
  111. <li class="blockList">
  112. <hr>
  113. <br>
  114. <pre>class <span class="typeNameLabel">Student</span>
  115. extends <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></pre>
  116. <div class="block">A class representing students for a simple BlueJ demo program.</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="Student.html#Student--">Student</a></span>()</code>
  142. <div class="block">Create a student with default settings for detail information.</div>
  143. </td>
  144. </tr>
  145. <tr class="rowColor">
  146. <td class="colOne"><code><span class="memberNameLink"><a href="Student.html#Student-java.lang.String-int-java.lang.String-">Student</a></span>(java.lang.String&nbsp;name,
  147. int&nbsp;yearOfBirth,
  148. java.lang.String&nbsp;studentID)</code>
  149. <div class="block">Create a student with given name, year of birth and student ID</div>
  150. </td>
  151. </tr>
  152. </table>
  153. </li>
  154. </ul>
  155. <!-- ========== METHOD SUMMARY =========== -->
  156. <ul class="blockList">
  157. <li class="blockList"><a name="method.summary">
  158. <!-- -->
  159. </a>
  160. <h3>Method Summary</h3>
  161. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  162. <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>
  163. <tr>
  164. <th class="colFirst" scope="col">Modifier and Type</th>
  165. <th class="colLast" scope="col">Method and Description</th>
  166. </tr>
  167. <tr id="i0" class="altColor">
  168. <td class="colFirst"><code>java.lang.String</code></td>
  169. <td class="colLast"><code><span class="memberNameLink"><a href="Student.html#getStudentID--">getStudentID</a></span>()</code>
  170. <div class="block">Return the stident ID of this student.</div>
  171. </td>
  172. </tr>
  173. <tr id="i1" class="rowColor">
  174. <td class="colFirst"><code>java.lang.String</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="Student.html#toString--">toString</a></span>()</code>
  176. <div class="block">Return a string representation of this object.</div>
  177. </td>
  178. </tr>
  179. </table>
  180. <ul class="blockList">
  181. <li class="blockList"><a name="methods.inherited.from.class.Person">
  182. <!-- -->
  183. </a>
  184. <h3>Methods inherited from class&nbsp;<a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></h3>
  185. <code><a href="Person.html#getAddress--">getAddress</a>, <a href="Person.html#getName--">getName</a>, <a href="Person.html#getYearOfBirth--">getYearOfBirth</a>, <a href="Person.html#setAddress-java.lang.String-java.lang.String-java.lang.String-">setAddress</a>, <a href="Person.html#setName-java.lang.String-">setName</a>, <a href="Person.html#setYearOfBirth-int-">setYearOfBirth</a></code></li>
  186. </ul>
  187. <ul class="blockList">
  188. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  189. <!-- -->
  190. </a>
  191. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  192. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  193. </ul>
  194. </li>
  195. </ul>
  196. </li>
  197. </ul>
  198. </div>
  199. <div class="details">
  200. <ul class="blockList">
  201. <li class="blockList">
  202. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  203. <ul class="blockList">
  204. <li class="blockList"><a name="constructor.detail">
  205. <!-- -->
  206. </a>
  207. <h3>Constructor Detail</h3>
  208. <a name="Student--">
  209. <!-- -->
  210. </a>
  211. <ul class="blockList">
  212. <li class="blockList">
  213. <h4>Student</h4>
  214. <pre>public&nbsp;Student()</pre>
  215. <div class="block">Create a student with default settings for detail information.</div>
  216. </li>
  217. </ul>
  218. <a name="Student-java.lang.String-int-java.lang.String-">
  219. <!-- -->
  220. </a>
  221. <ul class="blockListLast">
  222. <li class="blockList">
  223. <h4>Student</h4>
  224. <pre>public&nbsp;Student(java.lang.String&nbsp;name,
  225. int&nbsp;yearOfBirth,
  226. java.lang.String&nbsp;studentID)</pre>
  227. <div class="block">Create a student with given name, year of birth and student ID</div>
  228. </li>
  229. </ul>
  230. </li>
  231. </ul>
  232. <!-- ============ METHOD DETAIL ========== -->
  233. <ul class="blockList">
  234. <li class="blockList"><a name="method.detail">
  235. <!-- -->
  236. </a>
  237. <h3>Method Detail</h3>
  238. <a name="getStudentID--">
  239. <!-- -->
  240. </a>
  241. <ul class="blockList">
  242. <li class="blockList">
  243. <h4>getStudentID</h4>
  244. <pre>public&nbsp;java.lang.String&nbsp;getStudentID()</pre>
  245. <div class="block">Return the stident ID of this student.</div>
  246. </li>
  247. </ul>
  248. <a name="toString--">
  249. <!-- -->
  250. </a>
  251. <ul class="blockListLast">
  252. <li class="blockList">
  253. <h4>toString</h4>
  254. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  255. <div class="block">Return a string representation of this object.</div>
  256. <dl>
  257. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  258. <dd><code><a href="Person.html#toString--">toString</a></code>&nbsp;in class&nbsp;<code><a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></code></dd>
  259. </dl>
  260. </li>
  261. </ul>
  262. </li>
  263. </ul>
  264. </li>
  265. </ul>
  266. </div>
  267. </div>
  268. <!-- ========= END OF CLASS DATA ========= -->
  269. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  270. <div class="bottomNav"><a name="navbar.bottom">
  271. <!-- -->
  272. </a>
  273. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  274. <a name="navbar.bottom.firstrow">
  275. <!-- -->
  276. </a>
  277. <ul class="navList" title="Navigation">
  278. <li><a href="package-summary.html">Package</a></li>
  279. <li class="navBarCell1Rev">Class</li>
  280. <li><a href="package-tree.html">Tree</a></li>
  281. <li><a href="index-all.html">Index</a></li>
  282. <li><a href="help-doc.html">Help</a></li>
  283. </ul>
  284. </div>
  285. <div class="subNav">
  286. <ul class="navList">
  287. <li><a href="Staff.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  288. <li>Next&nbsp;Class</li>
  289. </ul>
  290. <ul class="navList">
  291. <li><a href="index.html?Student.html" target="_top">Frames</a></li>
  292. <li><a href="Student.html" target="_top">No&nbsp;Frames</a></li>
  293. </ul>
  294. <ul class="navList" id="allclasses_navbar_bottom">
  295. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  296. </ul>
  297. <div>
  298. <script type="text/javascript"><!--
  299. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  300. if(window==top) {
  301. allClassesLink.style.display = "block";
  302. }
  303. else {
  304. allClassesLink.style.display = "none";
  305. }
  306. //-->
  307. </script>
  308. </div>
  309. <div>
  310. <ul class="subNavList">
  311. <li>Summary:&nbsp;</li>
  312. <li>Nested&nbsp;|&nbsp;</li>
  313. <li>Field&nbsp;|&nbsp;</li>
  314. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  315. <li><a href="#method.summary">Method</a></li>
  316. </ul>
  317. <ul class="subNavList">
  318. <li>Detail:&nbsp;</li>
  319. <li>Field&nbsp;|&nbsp;</li>
  320. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  321. <li><a href="#method.detail">Method</a></li>
  322. </ul>
  323. </div>
  324. <a name="skip.navbar.bottom">
  325. <!-- -->
  326. </a></div>
  327. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  328. </body>
  329. </html>