Okay, so I have this assignment that I've gotten stuck on and I'd appriciate any help.
Basically what I have is a base-class and two classes that derive from that base class, which hasn't been a problem. But now I need to make a "container" class that has a "double-pointer" dynamic array containing instances of the two classes.
My problem is then: why does a double-pointer array help me here? This double-pointer business seems quite confusing to me. Through googling I've found out that a double-pointer basically is a pointer to a pointer, but how does that help me here and how do I declare a double-pointer dynamic array?
Also, how can I store two different classes(although deriving from the same base-class) in the same array, isn't this two different data-types?