previous | start | next

## Constructing Objects (Object Construction)

- Creating any object is called construction.
- We can construct an object just like we create any variable.

  >     Time sometime;

- We initialize an object by passing construction parameters when the object is created. The `Time` class uses military time.

  >     Time day_end(23, 59, 59); /* the last second of the day */

- Creating objects without parameters is called default construction. No parameters means not parenthesis! The Time class creates an object with the current time.

  >     Time now; /* the time this object is created */
  >     Time later(); /* NO! */

- An object can be created anytime by supplying the class name with (or without) parameters.

  >     sometime = Time(12, 5, 18); /* we already declared sometime */

previous | start | next