# Include "stdafx. H"
# Include <iostream>
# Include <windows. h>
Using namespace STD;
Class basic
{
Public:
Int;
Public:
Virtual void test (int B)
{
A = B;
}
};
Class son: Public Basic
{
Public:
Void display ()
{
Cout <A <Endl;
}
Public:
Int;
};
Int _ tmain (INT argc, _ tchar * argv [])
{
Son example;
Cout <example. A <Endl;
Example. Display ();
Example. Test (4 );
Example. Display ();
Return 0;
}
**************************************** **************************
# Include "stdafx. H"
# Include <iostream>
# Include <windows. h>
Using namespace STD;
Class basic
{
Public:
Int;
Public:
Virtual void test (int B)
{
A = B;
}
};
Class son: Public Basic
{
Public:
Void display ()
{
Cout <A <Endl;
}
};
Int _ tmain (INT argc, _ tchar * argv [])
{
Son example;
Cout <example. A <Endl;
Example. Display ();
Example. Test (4 );
Example. Display ();
Return 0;
}
* ******************* Assert breakpoint **************** **************
# Include "stdafx. H"
# Include <iostream>
# Include <windows. h>
Using namespace STD;
Class basic
{
Public:
Int;
Public:
Void test (int B)
{
A = B;
}
};
Class son: Public Basic
{
Public:
Void display ()
{
Cout <A <Endl;
}
};
Int _ tmain (INT argc, _ tchar * argv [])
{
Son example;
Cout <example. A <Endl;
Example. Display ();
Example. Test (4 );
Example. Display ();
Return 0;
}
**************************************** **********************
# Include "stdafx. H"
# Include <iostream>
# Include <windows. h>
Using namespace STD;
Class basic
{
Public:
Int;
Public:
Void test (int B)
{
A = B;
}
};
Class son: Public Virtual basic
{
Public:
Void display ()
{
Cout <A <Endl;
}
};
Int _ tmain (INT argc, _ tchar * argv [])
{
Son example;
Cout <example. A <Endl;
Example. Display ();
Example. Test (4 );
Example. Display ();
Return 0;
}