开发者

how to simulate the inheritance of a record?

I'd like to inherit records, since this is not possible the best solution is to create classes with public fields and use inheritance aga开发者_JAVA技巧inst them?


Yes, uses classes. There is a complete discussion in the Stack Overflow question Why can't Delphi records have inheritance?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜