Is it possible to have an ADT (Abstract Data Type) array that contains pointers of the base class, said class being abstract? If so, how can I do that?

1 Answers

6502 On

You cannot have an instance of an abstract class. You can have a reference (but you cannot have arrays of references) and you can have pointers.

Pointers to a base class that is abstract are perfectly fine, and you can place them in arrays without problems.