M
M
Mr. Vazovsky2018-02-20 16:11:03
C++ / C#
Mr. Vazovsky, 2018-02-20 16:11:03

How to add an object of an inheritor class?

Good afternoon friends! I have a vector of pointers to the base class and I need to add objects of the heir class to this vector. When adding objects using the .push_back() method, it throws an error. How to fix this problem?5a8c1e61a4bb5677289765.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question