Mitron Polymorphism - Please Don't Execute
class IMF
{
}
class WB
{
}
class Vatican
{
}
class Sonia: Vatican
{
}
class MMS : IMF, WB
{
Sonia *madam;
MMS()
{
madam = new Sonia();
}
virtual void Show() = 0;
private FDI(int p1, int p2);
}
class NAMO: MMS
{
public FDI(int p1, int p2):FDI(1,1);
public FDI_1(int p,...);
public FDI_2(int p,...);
public FDI_3(int p,...);
.
.
.
public FDI_n(int p,...);
}
int main()
{
WB *mitron1 = new NAMO();
IMF *mitron2 = new NAMO();
NAMO *mitron3 = new NAMO();
mitron1->FDI(......);
mitron2->FDI(......);
mitron3->FDI(......);
.
.
.
}