C++ (Qt)#include <iostream> class A{ public: A(){} explicit A(const A &other){ std::cout << "Copy\n";} ~A(){} A &operator= (const A &other){ std::cout << "Assign\n"; return *this; }}; int main() { A foo; A bar = foo; bar = foo; return 0;}