#include <iostream>
using namespace std;
class Base {
public:
void method(){};
};
class Child : public Base {
public:
void method() { cout << "Child"; };
};
int main()
{
Base* base = new Child();
base->method();
return 0;
}
Login in to like
Login in to comment