1. Technology

Constructor

By

Definition: A constructor is a special method that creates and initializes instance objects. The declaration of a constructor looks like a procedure declaration, but it begins with the reserved word constructor.

A class can have more than one constructor, but most have only one. It is conventional to call the constructor Create.

To create an object, call the constructor method on a class type.

 type
   TCar = Class
    constructor Create;
   end; 

...

  car := TCar.Create;

©2014 About.com. All rights reserved.