What's the Delphi equivalent of 'this' in C++? Could you please give some examples of its use?
TObject is the root class from which all other classes descend. It has no explicit fields, but it stores a pointer to its VMT in a hidden field. It also defines a number of useful methods that all classes inherit.
A class reference is a special meta type that can be used to refer to classes (not instances of them) within a certain subtree of the class hierarchy. This allows to write code that can work polymorphically with classes – for example dynamically instantiate different subclasses or call virtual static methods.
The Delphi method is a process used to arrive at a group opinion or decision by surveying a panel of experts. Experts respond to several rounds of questionnaires, and the responses are aggregated and shared with the group after each round.
In delphi Self is the equivalent of this. It is also assignable as described in here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With