Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

constructor

You are here: irt.org | FOLDOC | constructor

<programming> 1. In object-oriented languages, a function provided by a class to initialise a newly created object. The constructor function typically has the same name as the class. It may take arguments, e.g. to set various attributes of the object or it may just leave everything undefined to be set elsewhere.

A class may also have a destructor function that is called when objects of the class are destroyed.

2. In functional programming and type theory, one of the symbols used to create an object with an algebraic data type.

(2014-10-04)

Nearby terms: Constructive Cost Model « constructive proof « constructive solid geometry « constructor » Consul » consultant » container class

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb