What is the output of following codes? #include #include #in…
What is the output of following codes? #include #include #include using namespace std; class Dog { private: string name; public: Dog(); Dog(string initName); void setName(string newname); string getName(); }; Dog::Dog() { cout