闫立新

2015年10月22日

第13章 类继承 --抽象基类

摘要: 包括贷款,虚函数,抽象基类。两个版本的最终版本。1.acctabc.h#ifndef ACCTABC_H_#include#includeusing namespace std;class AcctABC{private: string fullname; long acctNum; ... 阅读全文

posted @ 2015-10-22 10:45 闫立新 阅读(120) 评论(0) 推荐(0) 编辑

第13章 类继承

摘要: 一个普通的类继承,包括构造函数传对象引用和参数列表初始化#ifndef TABLETENN1_H_#define TABLETENN1_H_#includeusing namespace std;class TableTennisPlayer{private: string firstname... 阅读全文

posted @ 2015-10-22 09:13 闫立新 阅读(145) 评论(0) 推荐(0) 编辑

导航