編集:顧客クラスを作成しようとしていますが、機能に問題があります。複数の継承関数
以下の指示に従います。新しいクラスの導出 - 得意先クラス(貯蓄からの継承 - 銀行口座からの継承) 顧客クラスを作成します。顧客クラスは、私の機能を修正する方法上の任意の方向が
#include "BankAccount.h"
#include "SavingsAccount.h"
#include <iostream>
class Customer : public SavingsAccount, public BankAccount {
protected:
string CustomerName;
public:
string getCustomerName();
void setCustomerName(string);
void WithdrawSavings(){ Customer c; c.BankAccount::balance(); }
void DepositSavings(double);
Customer(){
CustomerName = "";
}
};
ここには明らかな問題が多すぎます。このコンパイルエラーだけでなく、より根本的な問題があります。この質問は回収可能ではありません... –
'Customer'は' SavingsAccount'と 'BankAccount'ですか? –