| <<< | Index | >>> |
How are constructors defined ?
// point.h
class Point
{
public:
Point();
private:
int m_x;
int m_y;
};
// point.cpp
// Default constructor is the one with no arguments:
Point::Point()
{
m_x = 0;
m_y = 0;
}
| <<< | Index | >>> |