object-oriented programming

From Lazarus wiki

English (en) suomi (fi)

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.