Question: using c++ 2) Based on the following UML class diagram, write the header on (Person.b) file and the implementation on (Personlmp.cpp) file for the Person

 using c++ 2) Based on the following UML class diagram, write using c++

2) Based on the following UML class diagram, write the header on (Person.b) file and the implementation on (Personlmp.cpp) file for the Person class. Person -name: string -nationality: string -age: int -gender: char + Person() + Person(string, string, int, char) + set Person Info (string, string, int, char): void + printInfo() : void Functions Description for Person: 1) A default constructor to set appropriate values for the private members. 2) A constructor that takes 4 parameters and sets them to the following members: the name, the nationality, the age and the gender. 3) setPersonInfo: that takes 4 parameters and sets them to the following members: the name, the nationality, the age and the gender. 4) printInfo function that prints all information about the person: the name, the nationality, the age and the gender

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!