Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Member function definitions for PatientRecord class
- #include <iostream>
- #include "PatientRecord.h"
- #include "date.h"
- PatientRecord::PatientRecord(string first, string last, int num, Date birth)
- : firstName(first),
- lastName(last),
- id(num),
- birthday(birth)
- {
- }
- PatientRecord::PatientRecord()
- {
- }
- PatientRecord::~PatientRecord()
- {
- }
- PatientRecord &PatientRecord::setFirstName(string f)
- {
- firstName = f;
- return *this;
- }
- PatientRecord &PatientRecord::setLastName(string l)
- {
- lastName = l;
- return *this;
- }
- PatientRecord &PatientRecord::setId(int i)
- {
- id = i;
- return *this;
- }
- PatientRecord &PatientRecord::setBirthday(Date b)
- {
- birthday = b;
- return *this;
- }
- string PatientRecord::getFirstName()
- {
- return firstName;
- }
- string PatientRecord::getLastName()
- {
- return lastName;
- }
- Date PatientRecord::getBirthday()
- {
- return birthday;
- }
- int PatientRecord::getId()
- {
- return id;
- }
Advertisement
Add Comment
Please, Sign In to add comment