So I am working on a program for my C# class and the big thing that this program involves is inheritance. What the program is supposed to do is to let me input transactions for a single person and their account number and place the transactions under one of 3 bank accounts. Main() is supposed to set up the accounts for the people with their number and type of account and output their transactions to a text file. I have my Main() .cs file pretty much finished. What I am having trouble with are my class files. I am to have 4 class files, one for each account, and one bank account class that sends the information to one of the other 3 account classes. What I really need is more of a guide on what to do for these two classes.
The Bank Account Class is supposed to have:
a method to make deposits
a property to access the account number
a property to access the account balance
and data field members for an account number and account balance.
And one of the Account Classes is to have:
a constructor to initialize the checking account data members. the account number is initialized to 000 balance to 0, Minimum to 1000 and the charge to .50
a method that will cash a check by receiving a check amount and debit the account balance accordingly
and data field members for a minimum balance value that will dictate when a per-check charge is to be made and a value that will be charged on each check cashed when the account balance is less than the minimum required balance
Just to add My Main() consists of this;
output each person via streamwriter to their own individual file
input value 1-3 that will direct to the right account i.e. "Input (1) for Checking Account"
swith (choice) that uses a constructor that pulls back the values
The Bank Account Class is supposed to have:
a method to make deposits
a property to access the account number
a property to access the account balance
and data field members for an account number and account balance.
And one of the Account Classes is to have:
a constructor to initialize the checking account data members. the account number is initialized to 000 balance to 0, Minimum to 1000 and the charge to .50
a method that will cash a check by receiving a check amount and debit the account balance accordingly
and data field members for a minimum balance value that will dictate when a per-check charge is to be made and a value that will be charged on each check cashed when the account balance is less than the minimum required balance
Just to add My Main() consists of this;
output each person via streamwriter to their own individual file
input value 1-3 that will direct to the right account i.e. "Input (1) for Checking Account"
swith (choice) that uses a constructor that pulls back the values
