object-oriented programming
From Free Pascal wiki
Jump to navigationJump to searchThe printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
│
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.