subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Signal sets company contracts to deliver one hundred 52-inch plasma high-definition television sets to a new retail customer, tuner tv store, on may 1, with payment to be made on delivery. signal tenders delivery in its own truck. tuner's manager notices that some of the cartons have scrape marks. tuner's owner phones signal's office and asks whether the sets might have been damaged as they were being loaded. signal assures tuner that the sets are in perfect condition. tuner tenders signal a check, which signal refuses, claiming that the first delivery to new customers is always for cash. tuner promises to pay the cash within two days. signal leaves the sets with tuner, which stores them in its warehouse pending its "grand opening sale" on may 15. two days later, tuner's stocker opens some of the cartons and discovers that a number of the sets are damaged beyond ordinary repair. signal claims tuner has accepted the sets and is in breach by not paying on delivery. will signal succeed on these claims? explain.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
Part 1: implement a superclass bankaccount that has the following fields and methods.

f...
Questions
question
Mathematics, 21.01.2020 00:31
question
Biology, 21.01.2020 00:31
Questions on the website: 13722360