I recently closed Why does my code work without inheritance but not with inheritance in C++? as it has plenty of duplicates (around 6) of which I can found in the first search on googleGoogle.
But then some user reopened this question without giving any reason. My question was this question incorrectly reopened and was this a misuse of power since
a) the reopening reason was not given by the user who reopened it
b) there already exist many duplicates for the question, many of which can be found on the activitythe activity.
All of those duplicates (the answers there really) describe the problem and can be used to solve the OP's problem. So I think that the questionthe question was incorrectly reopened.