-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSavingsAccount.h
40 lines (35 loc) · 903 Bytes
/
SavingsAccount.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** SavingsAccount class inherited from Account class.
*
* #include "SavingsAccount.h" <BR>
* -llib
*
*/
#ifndef SAVINGS_ACCOUNT_H
#define SAVINGS_ACCOUNT_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Account.h"
// SavingsAccount class definition
class SavingsAccount : public Account {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
SavingsAccount(int = 0, float = 0.0);
// Use compiler-generated copy constructor, assignment, and destructor.
// SavingsAccount(const SavingsAccount&);
// SavingsAccount& operator=(const SavingsAccount&);
// ~SavingsAccount();
// OPERATIONS
/** Overriding function that withdraws amount from SavingsAccount.
*
* @param aAmount The amount to be withdrawn.
*
* @return void
*/
void Withdraw(float aAmount = 0);
};
// end class SavingsAccount
#endif
// _SAVINGS_ACCOUNT_H_