【学习笔记】C++之多态实例:银行服务系统(Bank Service System)
Account作为其他类的基类,将其定义成抽象类,display() 和 withdrawl() 都是纯虚函数,后面用其实现多态。//==================================//account.h//==================================#pragma once#include<string>using std...
原创
2018-12-07 19:14:26 ·
1241 阅读 ·
0 评论