Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BankAccount.h
- #pragma once
- #ifndef BANKACCOUNT_H
- #define BANKACCOUNT_H
- #include <iostream>
- #include <string>
- #include <fstream> // IO to files
- #include <iomanip>
- #include <sstream>
- using namespace std;
- class BankAccount {
- private:
- string ActNum;
- double balance;
- string FirstName;
- string LastName;
- public:
- BankAccount() {
- ActNum = "Account number is not set.";
- balance = 0.0;
- FirstName = "First Name not set.";
- LastName = "Last Name not set.";
- }
- BankAccount(const string & actN, const string & fname, const string & lname, double bal);
- const string toString() const;
- void setAccountNumber(const string & actN);
- void deposit(double money);
- void withdraw(double money);
- void setLastName(const string & lname);
- string getAccountNumber() const;
- double getBalance() const;
- const string getFirstName() const;
- const string getLastName() const;
- const string getFullName() const;
- void print() const;
- void print(ostream & out) const;
- static void getInstance(BankAccount & BA);
- static void getInstance(BankAccount & BA, ifstream & in);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement