Nov-19-2022, 08:42 AM
(Nov-18-2022, 08:53 PM)Phaze90 Wrote: I need to build a mother-child-like class tree.It looks like you are confusing inheritance with composition, could you give a concrete example of your design?
Dont know which is the best practice how to structure it.
I could define a top-level class A which has some own attributes and at least 1 sub class B.
The class B itself has again some own attributes and at least 1 sub class C, and so on...