📄 account.cpp
字号:
//start id=ctor#include "account.h"#include <iostream>Account::Account(unsigned acctNum, double balance, string owner) : m_AcctNum(acctNum), m_Balance(balance), m_Owner(owner) { }JointAccount::JointAccount (unsigned acctNum, double balance, string owner, string jowner) :Account(acctNum, balance, owner), m_JointOwner(jowner) /* base class initialization required */ { }JointAccount::JointAccount (const Account& acc, string jowner) :Account(acc), /* compiler-generated copy constructor call */ m_JointOwner(jowner) { }//end//start id=dtorAccount::~Account() { cout << "Closing Acct - sending e-mail to primary acctholder:" << m_Owner << endl;} JointAccount::~JointAccount () { cout << "Closing Joint Acct - sending e-mail to joint acctholder:"; cout << m_JointOwner << endl;}//end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -