class father1
{
public:
virtual void Output();
};
class son:public father1
{
private:
void Output();
{
public:
virtual void Output();
};
class son:public father1
{
private:
void Output();
};
int main()
{
son sonInst;
father1 &faInst = sonInst;
faInst.Output();
//father1 * pFather=new son();
//pFather->Output();
return 1;
}