object-oriented programming

From Lazarus wiki
Revision as of 17:26, 6 August 2022 by Kai Burghardt (talk | contribs) (resolve Category: Pages using deprecated enclose attributes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en) Esperanto (eo) suomi (fi) polski (pl)

An object-oriented programming (OOP) is a programming method to write programs using "object" to represent data and methods. The object can, upon request, perform the functions that are known as methods. The object stores data in its internal variables. The class defines the common features of certain objects.

The inheritance allows you to make new class definitions based on old definitions (see more about using the reserved word inherited). A constructor is a method called object creation. A destructor is called when the object is destroyed.