subject

(1) Create a new class called SavingsAccount that extends BankAccount.(2) It should contain an instance variable called rate that represents the annual interest rate. Set it equal to 2.5%.(3) It should also have an instance variable called savingsNumber, initialized to 0. In this bank, you have one account number, but can have several savings accounts with that same number. Each individual savings account is identified by the number following a dash. For example, 100001-0 is the first savings account you open, 100001-1 would be another savings account that is still part of your same account. This is so that you can keep some funds separate from the others, like a Christmas club account.(4) An instance variable called accountNumber that will hide the accountNumber from the superclass, should also be in this class.(5) Write a constructor that takes a name and an initial balance as parameters and calls the constructor for the superclass. It should initialize accountNumber to be the current value in the superclass accountNumber (the hidden instance variable) concatenated with a hyphen and then the savingsNumber.(6) Write a method called postInterest that has no parameters and returns no value. This method will calculate one month

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
What did creator markus β€œnotch" persson initially call his game
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
You know the right answer?
(1) Create a new class called SavingsAccount that extends BankAccount.(2) It should contain an insta...
Questions
question
French, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Social Studies, 17.09.2020 18:01
question
Computers and Technology, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Spanish, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
question
Mathematics, 17.09.2020 18:01
Questions on the website: 13722363