Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 genderStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started