Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question