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, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
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
Physics, 24.11.2020 03:00
question
Mathematics, 24.11.2020 03:00
question
Mathematics, 24.11.2020 03:00
question
Mathematics, 24.11.2020 03:00
question
Health, 24.11.2020 03:00
question
Mathematics, 24.11.2020 03:00
Questions on the website: 13722367