【文件属性】:
文件名称:a7-maia-johnson:GitHub Classroom创建的a7-maia-johnson
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-04 22:06:49
C++
继承程序
学习成果重点:
知道如何从基类派生
理解压倒一切
问题: Account类旨在代表客户的银行帐户(基本类)。 它包括一个数据成员(类型为double)来表示帐户余额。 此类提供了一个构造函数,该构造函数接收初始余额并使用它来初始化数据成员。
帐户类别
帐号h
# ifndef ACCOUNT_H
# define ACCOUNT_H
# include < iostream>
using namespace std ;
class Account {
private:
double balance; // data member that stores the balance
protected:
double getBalance () const ; // return the account balance
void setBalance (
【文件预览】:
a7-maia-johnson-master
----account.cpp(787B)
----account.h(534B)
----SavingsAccount.cpp(536B)
----CheckingAccount.h(687B)
----Part-1()
--------SavingsAccount.cpp(350B)
--------Account.h(489B)
--------Account.cpp(752B)
--------README.md(637B)
--------main.cpp(1KB)
----CheckingAccount.cpp(1KB)
----README.md(4KB)
----Part-2()
--------SavingsAccount.cpp(350B)
--------Account.h(689B)
--------Account.cpp(727B)
--------CheckingAccount.h(660B)
--------CheckingAccount.cpp(641B)
--------README.md(680B)
--------main.cpp(1KB)
--------SavingsAccount.h(440B)
----main.cpp(1KB)
----SavingsAccount.h(459B)
网友评论
相关文章
- intro-to-github-amanialmutairi:GitHub Classroom创建的github-amanialmutairi简介
- github-alexvaka简介:GitHub Classroom创建的github-alexvaka简介
- github-grundlagen-mmithoefer:GitHub Classroom创建的github-grundlagen-mmithoefer
- example-classroom-template-davegallant:由GitHub Classroom创建的example-classroom-template-davegallant