Answer the question
In order to leave comments, you need to log in
How to cast a child to a parent?
C++14 standard
Child inherits from Main
You can't use new
Now I do it this way, but it's not very good
Child _test = Child(true, 100);
Main &test = _test;
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