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
#includeusing 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()};
class Person{private:string name;Address address;public:// constructor
//method show()
};
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here