| <<< | Index | >>> |
You lose the implicit default constructor, if:
|
class Point {
public:
Point();
};
|
|
class Point {
public:
Point( int x = 0, int y = 0 );
};
|
|
class Point {
public:
Point( Point const* other );
};
void main()
{
Point pt; // Error: no default constructor:
} |
// 10 calls to Point::Point()
Point point_array[ 10 ];
| <<< | Index | >>> |