-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestAccount.cpp
More file actions
62 lines (62 loc) · 1.41 KB
/
Copy pathtestAccount.cpp
File metadata and controls
62 lines (62 loc) · 1.41 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
///*
//testAccount.cpp
//Teng Zhao: 40089560
//Thomas Flynn: 40034877
//*/
//
//#include "Chequing.h"
//#include "Saving.h"
//#include "Customer.h"
//
//int main() {
//
// //Account* a;
// Saving* a1 = new Saving("1",200,5,3,5);
// Chequing* a2 = new Chequing("2", 250, 5, 3, 5);
// Customer* c1 = new Customer("1","John","doe","111111 ", "111-111-1111","john.doe@gmail.com");
// Customer* c2 = new Customer("2", "Jane", "doe", "222222", "222-222-2222", "jane.doe@gmail.com");
//
// //a1->printAccount();
// //a2->printAccount();
//
// //c1->printCustomer();
// //c2->printCustomer();
//
//
// a1->addOwner(c1); //jane holds a chequing account
// a1->printOwner();
// //a2->printAccount();
//
// //c1->addAccount(a1);//john holds saving account
// c1->listSaving();
// c1->removeAccount("1");
// a1->printOwner();
// //a1->printAccount();
//
// //c2->addAccount(a1);//both john and jane share the saving account
// //a1->printAccount();
//
// //cout << "John doe got divorced!!!" << endl;
//
// //a1->removeOwner("1");
// //a1->printAccount();
//
// //cout << "Jane 'not doe' fled the country!!!" << endl;
//
// //c2->setLastName("not doe");
//
// //c2->removeAccount("1");
// //a1->printAccount();
//
// //cout << "John doe got played by a gold digger !!!! " << endl;
//
// //cout << "John can track Jane with her Chequing account!!!! " << endl;
//
// //c2->listChequing();
//
// delete c1, c2, a1, a2;
//
// system("pause");
// return 0;
//}