the main functionality in it, then I add functionality in its descendants Tcarlist and Tmotolist and use it by adding Tcar and TMoto, respectively.
Am I doing it right, or should I do it differently?
a little bit of code:
https://dpaste.org/B65R
take a look into abstract classes and virtual methods
And take a look at design patterns, maybe that's helps you, too
Обсуждают сегодня