Good day, dear experts. I just got on the warpath with ignorance of C ++, so please treat with condescension if the question is stupid.
The essence of the problem is the following: the class "Product" may consist of 1 or several classes "SedUnitsa", and / or 1 or several classes "Detail". The “Unit” class, in turn, consists of 1 or several “Detail” classes.
The first thing that came to mind is to create, for example, in the class “SbUnitse” a property-array from the classes “Detail”. But this idea I have failed. Something I didn’t think, with the designers, apparently, was sitting for a long time, and now completely confused, I appeal to your help: How to organize an array of classes correctly. If it is possible a tiny example would be ..)
Thanks in advance for good advice)