#include <iostream>
using namespace std;
class father
{
public:
void F(void)
{cout<<"fathre"<<endl;
}
};
class derived :public father
{
public:
using father::F;
void F()
{
cout<<"derived"<<endl;}
};
void main()
{
derived D;
D.F();
}
using namespace std;
class father
{
public:
void F(void)
{cout<<"fathre"<<endl;
}
};
class derived :public father
{
public:
using father::F;
void F()
{
cout<<"derived"<<endl;}
};
void main()
{
derived D;
D.F();
}