I
I
IliaNeverov2021-08-09 15:42:00
C++ / C#
IliaNeverov, 2021-08-09 15:42:00

How to store pointers to objects of different types in an array?

Can you please tell me how to store pointers to objects of different types in an array?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2021-08-09
@IliaNeverov

If all these types are inherited from the same class, then you can store pointers to the base class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question