Question
C# - Console Applications - Visual Studios You are to write a program which is going to use inheritance. It should start off with the
C# - Console Applications - Visual Studios
You are to write a program which is going to use inheritance. It should start off with the base classes
Account: contains the string name, int accountnumber, double balance.
Savings: Derived from Account class, it should contain double interest rate.
Checkings: Derived from Account class, it should contain double overdraftlimit.
CreditCard: Derived from Checkings class, it should contain int cardnumber.
Create a program which will create an array of 3 Savings accounts, 3 Checkings accounts and 3 CreditCards. Create 3 files. Savings.txt, Checkings.txt, CreditCards.txt which contains the information for each and infile the information from the file to the array of the classes. *You will come up with the information in each file*
Make sure to include the method used to infile (make sure to use loops), the way the classes are constructed (inheritance), and the way the the classes are used (make sure the constructor and overloaded constructor is used correctly).
As for the Main, simply do a display of all 3 savings, checkings and creditcards in a neat fashion.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started