![]() Same as with regular properties a static property can retrieve values by calling methods, however all of these accessors and mutators have to be static members as well.Īside from fields, properties and methods, Delphi classes can also hold shared constructors/destructors. A Delphi class can contain any number of static fields and properties which work the exact same way as a regular member would, however they can only be accessed in a static context. However, Delphi also has the ability to add static members to classes which can be quite useful at times.ĭelphi features several different kinds of static members. ![]() Because of this static code in Delphi is often added as procedural code, which makes sense of course. ![]() Delphi comes with support for both OOP and procedural code, something you come across less every day as more languages move over to an OOP-only structure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |