I know that if there is an abstract class (for example: Account) and heirs of an abstract class (PrivelegeAccount, SavingAccount), then we can use our heirs through a pointer to the parent class (Account *).
So the task: We must have a dynamic array of accounts of different types. How to do this and is it possible to create it through vector?
Sincerely.