Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE DO IT IN C++ AND MAKE SURE YOUR OUTPUT MATCHES THE OUTPUT GIVEN. EXPLAIN AS YOU CODE. KEEP IT BASIC. LOOK AT THE BOTTOM
PLEASE DO IT IN C++ AND MAKE SURE YOUR OUTPUT MATCHES THE OUTPUT GIVEN. EXPLAIN AS YOU CODE. KEEP IT BASIC. LOOK AT THE BOTTOM FOR 3 FILES.
main.cpp
#include "extPersonType.h"
#includeint main() { extPersonType myPerson = extPersonType("John", "Denver", 3 , addressType(" 42 W Warren Ave", "Wayne", "MI", "48202")); myPerson.print(); system("pause"); }
personType.h
#include
using namespace std; class personType { public: virtual void print() const; void setName(string first, string last); string getFirstName() const; string getLastName() const; personType(string first = "", string last = ""); protected: string firstName; string lastName; };
personTypeImp.cpp
#include
#include#include "personType.h" using namespace std; void personType::print() const { cout
Step 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