Inheritance project error - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Inheritance project error

goirishgoirish Dayton, OHPosts: 1Member

I am working on a project in my textbook (Blue Pelican Java) in which I have written a Tester class, a BankAccount class (which is a super class) and a SavingsAccount class (which is a subclass). The BankAccount class compiles fine but compiling either of the other two leads me to an error in the SavingsAccount class which is:

";" expected at the end of this line:

public SavingsAccount(double amount, double rate) // the constructor for SavingsAccount

Can anyone help? This is my first post here. Should I post the two problem classes in their entirety? Thanks in advance.

Sign In or Register to comment.