#include <cstdlib>
#include <iostream>
using namespace std;
class A {
public:
void pisz(){cout<<"Litera A"<<endl;}
};
class B : public A {
public:
void pisz(){cout<<"Litera B"<<endl;}
};
int main()
{
A * a= new A();
B * b= new B();
a->pisz();
b->pisz();
system("PAUSE");
return EXIT_SUCCESS;
}
#include <iostream>
using namespace std;
class A {
public:
void pisz(){cout<<"Litera A"<<endl;}
};
class B : public A {
public:
void pisz(){cout<<"Litera B"<<endl;}
};
int main()
{
A * a= new A();
B * b= new B();
a->pisz();
b->pisz();
system("PAUSE");
return EXIT_SUCCESS;
}