Write a c++ program to define a base class for account, derive two classes namely saving account and current account.
#include<iostream>
using namespace std;
class Account{
};
class savingsAccount: Account{
};
class currentAccount: Account{
};
Comments
Leave a comment