【问题标题】:how to simulate the inheritance of a record?如何模拟记录的继承?
【发布时间】:2010-09-20 10:27:15
【问题描述】:

我想继承记录,因为这是不可能的,最好的解决方案是创建具有公共字段的类并对其使用继承?

【问题讨论】:

    标签: delphi inheritance record


    【解决方案1】:

    是的,使用类。在Stack Overflow question Why can't Delphi records have inheritance?有完整的讨论

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-05
    • 1970-01-01
    • 1970-01-01
    • 2011-09-14
    • 2016-03-23
    • 2021-10-23
    • 2011-03-13
    相关资源
    最近更新 更多