Код: Выделить всё
#include
class A {
public:
int _numA;
A(int x) {
_numA = x;
};
virtual int run(A& a) { //
Подробнее здесь: [url]https://stackoverflow.com/questions/79495316/using-override-to-fix-compiler-warning-about-hidden-method-isnt-working[/url]