Delphi self keyword

前端 未结 4 510
陌清茗
陌清茗 2021-01-02 06:56

I am learning Delphi reading Marco Cantu\'s book and it\'s super complete. It\'s very clear but I have a doubt about the keyword self. I already have experience

4条回答
  •  悲哀的现实
    2021-01-02 07:46

    self is a special variable that points to the object that owns the currently executing code and it gives access to the current object. In Ruby programming language there is self too, however equivalent of it in JavaScript, C++, C# and Java is this and in VB is Me.

提交回复
热议问题