Difference between revisions of "Template:Object Types"

From Lazarus wiki
Jump to navigationJump to search
(Creating this templat as a first overview. Source: https://forum.lazarus.freepascal.org/index.php/topic,30686.30.html (ASerge))
 
(Adding reference.)
Line 61: Line 61:
 
| No
 
| No
 
|}
 
|}
 +
 +
Modified from [https://forum.lazarus.freepascal.org/index.php/topic,30686.30.html https://forum.lazarus.freepascal.org/index.php/topic,30686.30.html] (original author: ASerge).

Revision as of 22:53, 17 February 2021

Feature Record Object Class
Encapsulation (combining data and methods + hiding visibility) Yes Yes Yes
Inheritance No Yes Yes
Class constrcutor and destrutor Yes Yes Yes
Polymorphism (virtual methods) No Yes Yes
Memory allocation Stack Stack Heap
Operator overload (global) Yes Yes Yes
Operator overload (in type only) Yes No No
Type helpers Yes No Yes
Virtual constructors, class reference No No Yes
Variant part (case) as c++ union Yes No No
Bitpacked (really packing) Yes No No

Modified from https://forum.lazarus.freepascal.org/index.php/topic,30686.30.html (original author: ASerge).