Код: Выделить всё
E::n()
A::m()
E::j()
Код: Выделить всё
(p4->n()).m();
Код: Выделить всё
#include
using namespace std;
class A{
public:
A() {cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79190742/c-problems-with-polymorphism-and-inheritance[/url]