previous | start | next

Default Constructors (Syntax 6.3 : Constructor Definition)

Syntax 6.3 : Constructor Definition

Class_name::Class_name(parameter1, ..., parametern){   statements
}
Example:
Point::Point(double xval, double yval)
{
   x = xval; y = yval;
}
Purpose: Supply the implementation of a constructor.


previous | start | next