UnDiUdin
UnDiUdin

Reputation: 15384

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 against them?

Upvotes: 4

Views: 4255

Answers (1)

Eduardo Mauro
Eduardo Mauro

Reputation: 1515

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

Upvotes: 10

Related Questions