Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Patron.h"
- using namespace std;
- Patron::Patron()
- {
- name = "Undefined";
- iD = -1;
- balance = 0;
- numBooks = -1;
- }
- Patron::Patron(string name, int iD, int balance, int numBooks)
- {
- this->name = name;
- this->iD = iD;
- this->balance = balance;
- this->numBooks = numBooks;
- }
- void Patron::SetName(string myName)
- {
- name = myName;
- }
- void Patron::SetID(int myID)
- {
- iD = myID;
- }
- void Patron::SetBalance(int myBalance)
- {
- balance = myBalance;
- }
- void Patron::SetNumBooks(int num)
- {
- numBooks = num;
- }
Advertisement
Add Comment
Please, Sign In to add comment