Answer to Question #278735 in C++ for badal

Question #278735
 Write a c++ program to define a base class for account, derive two classes namely saving account and current account.
 define member of all three classes accordingly.
Account-> acct_no, customer name, customer_address,withdrawal, deposition
Saving Accout-> fd
Current account-> checque book issue, deposition, withdrwal
1
Expert's answer
2021-12-13T00:02:48-0500
#include<iostream>
using namespace std;
class Account{
	private:
		string acct_no, customer name, customer_address;
		 double withdrawal, deposition;
		
}; 


class SavingAccount:  Account{
	private:
		double fd;
};


class CurrentAccount:  Account{
	private:
		string checque_book_issue;
		double deposition, withdrwal;
}; 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog