I use a mix of things, Classes, Objects, Records etc..
The reason is that at times I like heap objects, those that do not need to be created at time of need.
من الجيّد أنّكـ وجدت توظيفاً لكل نوع سواءاً كان سجلات أم الأصناف بنسختيها الـ calss والـ object.
google translate:
"It is good that you found a job for each type, whether it is records or classes, in its calss and object versions."
Now you can do this with the use of RECORDS however, Records do not inherit unless you are doing helpers which at this time I believe works only in Fpc and not Delphi.
لقد استخدمت السجلات من قبل والسجلات المتقدمة كذلكـ وأظنّ أنّ السجلات مناسبة جدّاً للمبتدئين وحتّى لكي يفهموا الفكرة العامة للأصناف ،ولكنّني لم أستخدم ميزة الـ helpers بعد ولكن سمعت عنها منكـ ومن خلال ذكرها في صفحات ويب أخرى ويبدو أنّي سأقرأ عنها بالتفصيل من خلال بحثي في google إن عثرت على بعض الشروح لهذه الميزة في السجلات.
google translate:
"I have used the records before and the advanced records as well - and I think that the records are very suitable for beginners and even for them to understand the general idea of the classes, but I have not used the helpers feature yet but I heard about it from you and through mentioning it in other web pages and it seems that I will read about it in detail through my search on google if I found some explanations for this feature
in the logs"of the records"."
Also, the Methods of a class are of type OBJECT The difference is the CLASSes are purly dynamic and need to be created always.
ماذا تعني بكون الـ methods من نوع الـ object؟ هل تعني الـ methods خاصّة نسخة الـ object وليس نسخة الـ class؟ عموماً كما أشرتَ أنّ نسخة الـ class تبدو حقّاً ديناميكيّة أكثر من نسخة الـ object.
google translate:
"What do you mean that methods are of type an object?
Does "Do you mean" the methods specifically mean the object version and not the class
instance "version"? In general, as you indicated, the class version really appears to be more dynamic than the object version."