Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "date.h"
- #include "PatientRecord.h"
- using namespace std;
- //Patient Constructor
- Patient::Patient(int id, const string fn, string ln, Date bDay){
- setID(id);
- setFirstName(fn);
- setLastName(ln);
- setBirthDate(bDay);
- }
- //Patient::~Patient(){}
- Patient& Patient::setID(int x)
- {
- ID = x;
- return *this;
- }
- Patient& Patient::setFirstName(string fn)
- {
- firstName = fn;
- return *this;
- }
- Patient& Patient::setLastName(string ln)
- {
- lastName = ln;
- return *this;
- }
- Patient& Patient::setBirthDate(Date bday)
- {
- birthdate = bday;
- return *this;
- }
- int Patient::getID()
- {
- return ID;
- }
- const string Patient::getFirstName()
- {
- return firstName;
- }
- const string Patient::getLastName()
- {
- return lastName;
- }
- Date Patient::getBirthDate()
- {
- return birthdate;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement