Delphi: Understanding constructors

后端 未结 4 1547
有刺的猬
有刺的猬 2020-11-30 23:28

i\'m looking to understand

  • virtual
  • override
  • overload
  • reintroduce

when applied to object constructors. Every

4条回答
  •  执笔经年
    2020-12-01 00:13

    use overload on both, it's the way i do it, and it works.

    constructor Create; Overload; <-- use overload here

    constructor Values; Overload; <-- and here

    remember not to use the same name for two different constructors

提交回复
热议问题