Similar to a Main Block in an ABL persistent procedure, a constructor is a block of code that is executed when a class-based object is instantiated. Constructors are special methods that can have parameters, but do not have a return type. In a hierarchy, a constructor in each class of the hierarchy is executed.