【问题标题】: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?有完整的讨论 【讨论】: 如果你创建了很多对象而不是类比记录慢。 额外对象开销的一种解决方案是使用享元设计模式。 en.wikipedia.org/wiki/Flyweight_pattern