Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- public:
- Int32 test;
- }
- class B: public A
- {
- public:
- Int32 bidule;
- }
- void Mafunc(void* MyObj)
- {
- (A)MyObj;
- }
- main()
- {
- auto toto = new B();
- Mafunc(toto);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement