I wonder how can i whrite the method show(). C++ write a constructor with parameters and a new implementation of the show () method for the Person class #include using namespace std; class Address{...


I wonder  how can i whrite the method show(). C++


write a constructor with parameters and a new implementation of the show () method for the Person class


#include
using namespace std;
class Address{
private:
int zip;
string city;
public:
Address(int zip, string city): zip(_zip),
city(_city) { }
void show() { cout<><"><><>
};


class Person{
private:
string name;
Address address;
public:
// constructor




//method show()


};



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here