Hi,
What is the best approach to this data structure?
I have two classes that are almost the same, inn classA I have a protected/private struct that differs slightly from the struct in classB.
What I need is something like a BaseClass which hold the generalization, the basic struct and some common functions, and two derived classes which extend the BaseClass and its struct and functions.
Furthermore the DerivedClassA has a pointer var to DerivedClassB...
Yes, this seems messy… I know! This is a school assignment…
I’m not too sure about the extending of the struct stuff… Union?