Part 1: implement a superclass bankaccount that has the following fields and methods.
f...
Computers and Technology, 12.12.2019 06:31, ineedhelp2322
Part 1: implement a superclass bankaccount that has the following fields and methods.
fields:
string firstname
string lastname
int accountid
double balance
methods:
constructor(): initialize balance to zero
deposit() – will accept a single value double parameter; the parameter value is added to the existing balance
withdrawal() – accepts a single value double dollar amount; the parameter value is subtracted from the existing balance
setters and getters for firstname, lastname, and accountid
getbalance() getter to return the balance
accountsummary() – prints all account information
part 2: implement a checkingaccount class that inherits from the bankaccount class.
has an interest rate attribute
allows overdraft withdrawals and charges a $30 free
methods:
processwithdrawal() – will display a negative balance that includes $30 overdraft fee and denotes that a fee has been accessed
displayaccount() – should display all superclass attributes and provide additional interest rate
ensure that your program has the two required classes and a test class.
Answers: 1
Computers and Technology, 21.06.2019 21:30, Boogates7427
Apower user needs you to install a second type of operating system on his computer to increase efficiency while running some specialized software programs. which installation technique should you use?
Answers: 3
History, 27.04.2020 01:34
History, 27.04.2020 01:34