some code samples, various examples of simple modeling ideas and some minor algorithms.

DepositAccount.html 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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 Tue May 29 20:49:57 EDT 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>DepositAccount</title>
  8. <meta name="date" content="2018-05-29">
  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="DepositAccount";
  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 CLASS DATA ======== -->
  33. <div class="header">
  34. <h2 title="Class DepositAccount" class="title">Class DepositAccount</h2>
  35. </div>
  36. <div class="contentContainer">
  37. <ul class="inheritance">
  38. <li>java.lang.Object</li>
  39. <li>
  40. <ul class="inheritance">
  41. <li>DepositAccount</li>
  42. </ul>
  43. </li>
  44. </ul>
  45. <div class="description">
  46. <ul class="blockList">
  47. <li class="blockList">
  48. <hr>
  49. <br>
  50. <pre>class <span class="typeNameLabel">DepositAccount</span>
  51. extends java.lang.Object</pre>
  52. </li>
  53. </ul>
  54. </div>
  55. <div class="summary">
  56. <ul class="blockList">
  57. <li class="blockList">
  58. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  59. <ul class="blockList">
  60. <li class="blockList"><a name="constructor.summary">
  61. <!-- -->
  62. </a>
  63. <h3>Constructor Summary</h3>
  64. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  65. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  66. <tr>
  67. <th class="colOne" scope="col">Constructor and Description</th>
  68. </tr>
  69. <tr class="altColor">
  70. <td class="colOne"><code><span class="memberNameLink"><a href="DepositAccount.html#DepositAccount-int-double-">DepositAccount</a></span>(int&nbsp;sum,
  71. double&nbsp;interest)</code>&nbsp;</td>
  72. </tr>
  73. </table>
  74. </li>
  75. </ul>
  76. <!-- ========== METHOD SUMMARY =========== -->
  77. <ul class="blockList">
  78. <li class="blockList"><a name="method.summary">
  79. <!-- -->
  80. </a>
  81. <h3>Method Summary</h3>
  82. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  83. <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>
  84. <tr>
  85. <th class="colFirst" scope="col">Modifier and Type</th>
  86. <th class="colLast" scope="col">Method and Description</th>
  87. </tr>
  88. <tr id="i0" class="altColor">
  89. <td class="colFirst"><code>int</code></td>
  90. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#balance--">balance</a></span>()</code>&nbsp;</td>
  91. </tr>
  92. <tr id="i1" class="rowColor">
  93. <td class="colFirst"><code>void</code></td>
  94. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#deposit-int-">deposit</a></span>(int&nbsp;sum)</code>&nbsp;</td>
  95. </tr>
  96. <tr id="i2" class="altColor">
  97. <td class="colFirst"><code>Account</code></td>
  98. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#open-int-">open</a></span>(int&nbsp;sum)</code>&nbsp;</td>
  99. </tr>
  100. <tr id="i3" class="rowColor">
  101. <td class="colFirst"><code>void</code></td>
  102. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#setInterest-double-">setInterest</a></span>(double&nbsp;newInterest)</code>&nbsp;</td>
  103. </tr>
  104. <tr id="i4" class="altColor">
  105. <td class="colFirst"><code>boolean</code></td>
  106. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#transfer-Account-int-">transfer</a></span>(Account&nbsp;acc,
  107. int&nbsp;sum)</code>&nbsp;</td>
  108. </tr>
  109. <tr id="i5" class="rowColor">
  110. <td class="colFirst"><code>void</code></td>
  111. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#update--">update</a></span>()</code>&nbsp;</td>
  112. </tr>
  113. <tr id="i6" class="altColor">
  114. <td class="colFirst"><code>void</code></td>
  115. <td class="colLast"><code><span class="memberNameLink"><a href="DepositAccount.html#withdraw-int-">withdraw</a></span>(int&nbsp;sum)</code>&nbsp;</td>
  116. </tr>
  117. </table>
  118. <ul class="blockList">
  119. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  120. <!-- -->
  121. </a>
  122. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  123. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  124. </ul>
  125. </li>
  126. </ul>
  127. </li>
  128. </ul>
  129. </div>
  130. <div class="details">
  131. <ul class="blockList">
  132. <li class="blockList">
  133. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  134. <ul class="blockList">
  135. <li class="blockList"><a name="constructor.detail">
  136. <!-- -->
  137. </a>
  138. <h3>Constructor Detail</h3>
  139. <a name="DepositAccount-int-double-">
  140. <!-- -->
  141. </a>
  142. <ul class="blockListLast">
  143. <li class="blockList">
  144. <h4>DepositAccount</h4>
  145. <pre>public&nbsp;DepositAccount(int&nbsp;sum,
  146. double&nbsp;interest)</pre>
  147. </li>
  148. </ul>
  149. </li>
  150. </ul>
  151. <!-- ============ METHOD DETAIL ========== -->
  152. <ul class="blockList">
  153. <li class="blockList"><a name="method.detail">
  154. <!-- -->
  155. </a>
  156. <h3>Method Detail</h3>
  157. <a name="setInterest-double-">
  158. <!-- -->
  159. </a>
  160. <ul class="blockList">
  161. <li class="blockList">
  162. <h4>setInterest</h4>
  163. <pre>public&nbsp;void&nbsp;setInterest(double&nbsp;newInterest)</pre>
  164. </li>
  165. </ul>
  166. <a name="update--">
  167. <!-- -->
  168. </a>
  169. <ul class="blockList">
  170. <li class="blockList">
  171. <h4>update</h4>
  172. <pre>public&nbsp;void&nbsp;update()</pre>
  173. </li>
  174. </ul>
  175. <a name="withdraw-int-">
  176. <!-- -->
  177. </a>
  178. <ul class="blockList">
  179. <li class="blockList">
  180. <h4>withdraw</h4>
  181. <pre>public&nbsp;void&nbsp;withdraw(int&nbsp;sum)
  182. throws AccountException</pre>
  183. <dl>
  184. <dt><span class="throwsLabel">Throws:</span></dt>
  185. <dd><code>AccountException</code></dd>
  186. </dl>
  187. </li>
  188. </ul>
  189. <a name="balance--">
  190. <!-- -->
  191. </a>
  192. <ul class="blockList">
  193. <li class="blockList">
  194. <h4>balance</h4>
  195. <pre>public&nbsp;int&nbsp;balance()</pre>
  196. </li>
  197. </ul>
  198. <a name="deposit-int-">
  199. <!-- -->
  200. </a>
  201. <ul class="blockList">
  202. <li class="blockList">
  203. <h4>deposit</h4>
  204. <pre>public&nbsp;void&nbsp;deposit(int&nbsp;sum)</pre>
  205. </li>
  206. </ul>
  207. <a name="open-int-">
  208. <!-- -->
  209. </a>
  210. <ul class="blockList">
  211. <li class="blockList">
  212. <h4>open</h4>
  213. <pre>public&nbsp;Account&nbsp;open(int&nbsp;sum)</pre>
  214. </li>
  215. </ul>
  216. <a name="transfer-Account-int-">
  217. <!-- -->
  218. </a>
  219. <ul class="blockListLast">
  220. <li class="blockList">
  221. <h4>transfer</h4>
  222. <pre>public&nbsp;boolean&nbsp;transfer(Account&nbsp;acc,
  223. int&nbsp;sum)</pre>
  224. </li>
  225. </ul>
  226. </li>
  227. </ul>
  228. </li>
  229. </ul>
  230. </div>
  231. </div>
  232. <!-- ========= END OF CLASS DATA ========= -->
  233. </body>
  234. </html>