Question: code in c++ PatientRecord.h #include #include using namespace std; class patientClass{ private: string firstName; string lastName; string symptom; int priorNum; public: patientClass(){ firstName = no

code in c++
PatientRecord.h
#include
#include
using namespace std;
class patientClass{
private:
string firstName;
string lastName;
string symptom;
int priorNum;
public:
patientClass(){
firstName = "no input";
lastName = "no input";
symptom = "no value";
priorNum = 0;
}
// non default parameterized constructor
patientClass(string fName, string lName, string sym, int pNum){
setFirst(fName);
setLast(lName);
setSym(sym);
setPrior(pNum);
}
// set functions
void setFirst(string fName){
firstName = fName;
}
void setLast(string lName){
lastName = lName;
}
void setSym(string sym){
symptom = sym;
}
void setPrior(int pNum){
priorNum = pNum;
}
// get functions
string getFirst(){
return firstName;
}
string getLast(){
return lastName;
}
string getSym(){
return symptom;
}
int getPrior(){
return priorNum;
}
// function to display details
void displayDetails(){
cout
cout
cout
cout
cout
}
};
int main(){
patientClass p1;
patientClass p2("samplFirst","sampLast","sampSym",1);
p1.displayDetails();
p2.displayDetails();
return 0;
}
 code in c++ PatientRecord.h #include #include using namespace std; class patientClass{
im confused, which attributes?
Please upload the header file for the class PatientRecord and include an operator overloading function for the operator '

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!