| <<< | Index | >>> |
How are copy constructors defined ?
// point.h
class Point
{
public:
Point( Point& other ); // copy constructor
private:
int m_x;
int m_y;
};
// point.cpp
Point::Point( Point& other )
{
m_x = other.m_x;
m_y = other.m_y;
}
| <<< | Index | >>> |