the output is First Appearance 1928: Minnie Mouse.
please explain the data flow in detail (to memorylevel).
#include <iostream> using namespace std; class Person public: Person() Person(string first) : first(first) string getname() const this->first=”Minnie”; return this->first +””+ this->last; private: mutable string first{ “Super” }; string last{ “Mouse” }; string saylt(const Person& c) return “Favorite character:” + c.getname(); string sayit(const Person&& c) return “First Appearance 1928: ” + c.getname(); int main() Person *p = new Person{ “Mickey” }; cout << sayit(move(*p)); return 0; Show transcribed image text #include using namespace std; class Person public: Person() Person(string first) : first(first) string getname() const this->first=”Minnie”; return this->first +””+ this->last; private: mutable string first{ “Super” }; string last{ “Mouse” }; string saylt(const Person& c) return “Favorite character:” + c.getname(); string sayit(const Person&& c) return “First Appearance 1928: ” + c.getname(); int main() Person *p = new Person{ “Mickey” }; cout
Expert Answer
Answer to the output is First Appearance 1928: Minnie Mouse. please explain the data flow in detail (to memory level)….