Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Help with overriding

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    10
    My Mood
    Stressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with overriding

    Hi, I'm new here

    Basically I have a class called BonusSavingsAccount which extends another class called SavingsAccount and my tutorial says that the BonusSavingsAccount should "override its (SavingsAccount) earnInterest() method and boost the effective original benefit by 50% of that benefit if the balance on the account is more than 1000". I don't understand what to do here, please help.


  2. #2
    Member
    Join Date
    Oct 2011
    Posts
    36
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Help with overriding

    please read this document, it might be helpful.
    Java - Overriding

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help with overriding

    wat the given above is very usefull link, u can implement the requirement by understanding the program given in the link ..

Similar Threads

  1. Overriding Object methods
    By tarkal in forum Java Theory & Questions
    Replies: 2
    Last Post: November 10th, 2011, 07:46 AM
  2. Overriding Methods
    By tcstcs in forum Java Theory & Questions
    Replies: 5
    Last Post: June 2nd, 2011, 05:23 AM
  3. Inheritance and Overriding help!
    By Knserbrave in forum Object Oriented Programming
    Replies: 4
    Last Post: February 24th, 2011, 01:46 PM
  4. Overloading vs Overriding
    By nickypass in forum Java Theory & Questions
    Replies: 1
    Last Post: October 17th, 2010, 02:53 AM
  5. Overriding methods declaration problems
    By TurboTuring in forum What's Wrong With My Code?
    Replies: 6
    Last Post: July 9th, 2010, 12:23 PM