Computers and Technology

Provide C++ and Java definitions For an Account class that could be used for a bank account. The class would need at least four data members: name, balance, accountNumber, and interestRate. Specify a constructor and a print function for the class. Give some thought to whether you'd want these data members to be public, private, or protected. You'd obviously not want to make all the class members public since that'd destroy the privacy of an account.
Let the Account class be the parent class of the subclasses named SavingsAccount and CheckingAccount. The subclass SavingsAccount should have an additional data member signifying whether the savings can to be used for short-term high-risk investments or long-term low-risk investments. The subclass CheckingAccount would need a data member signifying the minimum balance to be maintained in the account. As with the parent class, your subclasses would also need constructors and print functions.
Your homework should show the class definitions. Your homework should also show some specific objects created from the classes and successful invocations of the print functions for the different types of objects.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:50, rhonda45801
Free points just awnser this. what should i watch on netflix
Answers: 2
image
Computers and Technology, 23.06.2019 09:50, tatumleigh04
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, andrew412603
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
image
Computers and Technology, 24.06.2019 05:50, 11232003
What all vehicles has tesla inc. created over the years
Answers: 3
Do you know the correct answer?
Provide C++ and Java definitions For an Account class that could be used for a bank account. The cl...

Questions in other subjects:

Konu
Mathematics, 11.02.2021 01:40