#include using namespace std ; class A { public: int x1 ; int x2 ; A( ) { cout << "A Empty constructor." << endl ; } }; class B { public: B( ) { cout << "B Empty constructor." << endl ; } /* B& operator=(B& other) noexcept { cout << "B assignment operator for class B." << endl ; return *this ; } */ /* B& operator=(B&& other) noexcept { cout << "B Move assignment operator for class B." << endl ; return *this ; } */ }; class C { public: // B BObject1 ; C& operator=(const C& other) noexcept { cout << "C assignment operator for class C." << endl ; return *this ; } C( const C& other ) { cout << "C Copy constructor." << endl ; } C( ) { cout << "C Empty constructor." << endl ; } // C& operator=(C&& obj1) = default ; }; int main() { C CObject1 ; C CObject2 ; CObject2 = move(CObject1) ; return 0 ; }