Question: Please make the based on C++, and make descriptions for each code. Lab 2 Put at least 5 doxygen commands within the inherit2 example. Generate








Please make the based on C++, and make descriptions for each code.
Lab 2 Put at least 5 doxygen commands within the inherit2 example. Generate the corresponding documentation. Install graphviz. Work with a partner. Illustrate the results. //inherit2.h header file for the Person Type class #ifndef H_PersonType #define H_PersonType #include using namespace std; class personType { public: mm0 ang 2 public: void print() const; Function to output the first name and last name //in the form firstName lastName void setName(string first, string last); //Function to set firstName and lastName according to 7/the parameters 7/Post: firstName = first; lastName = last; void getName(string& first, string& last); //Function to return firstName and lastName via the parameters H/Post: first = firstName; last = lastName; personType(string first, string last); 7/Constructor with parameters 7/Set firstName and lastName according to the parameters 7/Post: firstName = first; lastName = last; personType(); I/Default constructor; [/Intialize firstName and lastName to empty string /Post: firstName = ""; lastName = ""; private: string firstName; //store the first name string lastName; //store the last name }; #endif Vinherit2i.cpp implementation file for the Person Type class Lab 2 #include using namespace std; #include #include "inherit2.h" using namespace std; void personType: :print() const { cout #include "inherit2.h" #include "partTimeEmployee." using namespace std; void partTimeEmployee: :print() { personType: :print(); //print the name of the employee cout #include "inherit2.h" #include "partTimeEmployee.h" using namespace std; int main() { personType newPerson; partTimeEmployee newEmployee("John", "Smith", 7.50,56); nantTimeFmnloyee employee: //client for TimeEmployee #include #include "inherit2.h" #include "partTimeEmployee.h" using namespace std; int main() { { personType newPerson; partTimeEmployee newEmployee ("John", "Smith",7.50,56); partTimeEmployee employee; newEmployee.print(); employee.setNameRateHours ("Rachel", "Moore", 9.75, 45); employee.print(); return 0; } output John Smith wages are : 420 Rachel Moore wages are : 438.75 Lab 2 Put at least 5 doxygen commands within the inherit2 example. Generate the corresponding documentation. Install graphviz. Work with a partner. Illustrate the results. //inherit2.h header file for the Person Type class #ifndef H_PersonType #define H_PersonType #include using namespace std; class personType { public: mm0 ang 2 public: void print() const; Function to output the first name and last name //in the form firstName lastName void setName(string first, string last); //Function to set firstName and lastName according to 7/the parameters 7/Post: firstName = first; lastName = last; void getName(string& first, string& last); //Function to return firstName and lastName via the parameters H/Post: first = firstName; last = lastName; personType(string first, string last); 7/Constructor with parameters 7/Set firstName and lastName according to the parameters 7/Post: firstName = first; lastName = last; personType(); I/Default constructor; [/Intialize firstName and lastName to empty string /Post: firstName = ""; lastName = ""; private: string firstName; //store the first name string lastName; //store the last name }; #endif Vinherit2i.cpp implementation file for the Person Type class Lab 2 #include using namespace std; #include #include "inherit2.h" using namespace std; void personType: :print() const { cout #include "inherit2.h" #include "partTimeEmployee." using namespace std; void partTimeEmployee: :print() { personType: :print(); //print the name of the employee cout #include "inherit2.h" #include "partTimeEmployee.h" using namespace std; int main() { personType newPerson; partTimeEmployee newEmployee("John", "Smith", 7.50,56); nantTimeFmnloyee employee: //client for TimeEmployee #include #include "inherit2.h" #include "partTimeEmployee.h" using namespace std; int main() { { personType newPerson; partTimeEmployee newEmployee ("John", "Smith",7.50,56); partTimeEmployee employee; newEmployee.print(); employee.setNameRateHours ("Rachel", "Moore", 9.75, 45); employee.print(); return 0; } output John Smith wages are : 420 Rachel Moore wages are : 438.75