<<< Controlling object creation and destruction | Index | Constructors >>> |
Objects are more useful if program can specify the details of their instantiation
This is done by declaring objects and controlling the semantics of object creation
The goal is to create objects which are always in a good state...
or at least identifiably in a bad state.
#include "point.h" int main() { Point pt( 5, 10 ); // construct object with initial values //... }
<<< Controlling object creation and destruction | Index | Constructors >>> |