Guest User

Untitled

a guest
Apr 13th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. // Member function definitions for PatientRecord class
  2. #include <iostream>
  3. #include "PatientRecord.h"
  4. #include "date.h"
  5.  
  6. PatientRecord::PatientRecord(string first, string last, int num, Date birth)
  7. : firstName(first),
  8. lastName(last),
  9. id(num),
  10. birthday(birth)
  11. {
  12. }
  13. PatientRecord::PatientRecord()
  14. {
  15. }
  16. PatientRecord::~PatientRecord()
  17. {
  18. }
  19. PatientRecord &PatientRecord::setFirstName(string f)
  20. {
  21. firstName = f;
  22. return *this;
  23. }
  24. PatientRecord &PatientRecord::setLastName(string l)
  25. {
  26. lastName = l;
  27. return *this;
  28. }
  29. PatientRecord &PatientRecord::setId(int i)
  30. {
  31. id = i;
  32. return *this;
  33. }
  34. PatientRecord &PatientRecord::setBirthday(Date b)
  35. {
  36. birthday = b;
  37. return *this;
  38. }
  39. string PatientRecord::getFirstName()
  40. {
  41. return firstName;
  42. }
  43. string PatientRecord::getLastName()
  44. {
  45. return lastName;
  46. }
  47.  
  48. Date PatientRecord::getBirthday()
  49. {
  50. return birthday;
  51. }
  52. int PatientRecord::getId()
  53. {
  54. return id;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment