-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCurrentAccount.h
40 lines (35 loc) · 903 Bytes
/
CurrentAccount.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
/** CurrentAccount class inherited from Account class.
*
* #include "CurrentAccount.h" <BR>
* -llib
*
*/
#ifndef CURRENT_ACCOUNT_H
#define CURRENT_ACCOUNT_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Account.h"
// CurrentAccount class definition
class CurrentAccount : public Account{
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
CurrentAccount(int = 0, float = 0.0);
// Use compiler-generated copy constructor, assignment, and destructor.
// CurrentAccount(const CurrentAccount&);
// CurrentAccount& operator=(const CurrentAccount&);
// ~CurrentAccount();
// OPERATIONS
/** Overriding function that withdraws amount from CurrentAccount.
*
* @param aAmount The amount to be withdrawn.
*
* @return void
*/
void Withdraw(float aAmount = 0);
};
// end class CurrentAccount
#endif
// _CURRENT_ACCOUNT_H_