comprecpp/cppbase/ex_object.cpp

22 lines
442 B
C++
Raw Normal View History

2024-03-08 15:25:16 +08:00
#include "ex_object.h"
CHouse::CHouse() : value(99)
2024-03-08 15:25:16 +08:00
{
std::cout << "CHouse()" << std::endl;
2024-03-08 15:25:16 +08:00
}
CHouse::CHouse(const CHouse& rh) : value(99)
2024-03-08 15:25:16 +08:00
{
std::cout << "CHouse(const CHouse& rh)" << std::endl;
2024-03-08 15:25:16 +08:00
}
CHouse::CHouse(CHouse&& rv) noexcept : value(99)
2024-03-08 15:25:16 +08:00
{
std::cout << "CHouse(CHouse&& rv)" << std::endl;
2024-03-08 15:25:16 +08:00
}
2024-03-08 15:25:16 +08:00
CHouse& CHouse::operator=(const CHouse& rh)
{
std::cout << "operator=(const CHouse& rh)" << std::endl;
2024-03-08 15:25:16 +08:00
return *this;
}