Java Programming HElp plezzzzzzzzzzz help!!

djranganamax

Junior member
  • Oct 18, 2006
    190
    2
    18
    39
    Kandy
    Mata me program eka karala dennakoooooo plezzzzzzz loku udawwak mata univesity eke dunna ekak :yes:

    Look at the Account class Account.java 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:(:(
     
    • Like
    Reactions: koondeGoda

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,927
    113
    Black Pearl
    adow loku ekakne
    kawuruth uba wenuwen oka karana ekak neee
    uba oka karanna patan ganna danne nethi dewal tiyanawanm
    ee aya udaw karai aniwa :D
     

    djranganamax

    Junior member
  • Oct 18, 2006
    190
    2
    18
    39
    Kandy
    ane plezzzzzz udaw karanna

    ane kauruth nadda mata udaw karanna ane plezzzzzz help me!!!!!!

    mata meka kohoma hari karala dennakoooooo:(:(:(