Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Java Programming HElp plezzzzzzzzzzz help!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="djranganamax" data-source="post: 7305864" data-attributes="member: 7530"><p>Mata me program eka karala dennakoooooo plezzzzzzz loku udawwak mata univesity eke dunna ekak <img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></p><p></p><p> Look at the Account class <a href="http://www.cs.bham.ac.uk/%7Emdr/teaching/RedHotChilli/java/Account.java" target="_blank">Account.java</a> and write a main method in a different class to briefly experiment with some instances of the Account class.</p><p></p><p></p><p> * Using the Account class as a base class, write two derived classes called SavingsAccount and CurrentAccount. A SavingsAccount object, in addition to the attributes of an Account object, should have an interest variable and a method which adds interest to the account. A CurrentAccount object, in addition to the attributes of an Account object, should have an overdraft limit variable. Ensure that you have overridden methods of the Account class as necessary in both derived classes.</p><p> * Now create a Bank class, an object of which contains an array of Account objects. Accounts in the array could be instances of the Account class, the SavingsAccount class, or the CurrentAccount class. Create some test accounts (some of each type).</p><p> * Write an update method in the bank class. It iterates through each account, updating it in the following ways: Savings accounts get interest added (via the method you already wrote); CurrentAccounts get a letter sent if they are in overdraft. </p><p></p><p>Hints:</p><p></p><p> * Note that the balance of an account may only be modified through the deposit(double) and withdraw(double) methods.</p><p> * The Account class should not need to be modified at all.</p><p> * Be sure to test what you have done after each step.</p><p></p><p></p><p></p><p>mata meka ada hetama karala dennakoooooo danna kenek plezzzzzzzz loku udawwak<img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /><img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="djranganamax, post: 7305864, member: 7530"] Mata me program eka karala dennakoooooo plezzzzzzz loku udawwak mata univesity eke dunna ekak :yes: Look at the Account class [URL="http://www.cs.bham.ac.uk/%7Emdr/teaching/RedHotChilli/java/Account.java"]Account.java[/URL] and write a main method in a different class to briefly experiment with some instances of the Account class. * Using the Account class as a base class, write two derived classes called SavingsAccount and CurrentAccount. A SavingsAccount object, in addition to the attributes of an Account object, should have an interest variable and a method which adds interest to the account. A CurrentAccount object, in addition to the attributes of an Account object, should have an overdraft limit variable. Ensure that you have overridden methods of the Account class as necessary in both derived classes. * Now create a Bank class, an object of which contains an array of Account objects. Accounts in the array could be instances of the Account class, the SavingsAccount class, or the CurrentAccount class. Create some test accounts (some of each type). * Write an update method in the bank class. It iterates through each account, updating it in the following ways: Savings accounts get interest added (via the method you already wrote); CurrentAccounts get a letter sent if they are in overdraft. Hints: * Note that the balance of an account may only be modified through the deposit(double) and withdraw(double) methods. * The Account class should not need to be modified at all. * Be sure to test what you have done after each step. mata meka ada hetama karala dennakoooooo danna kenek plezzzzzzzz loku udawwak:(:( [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom