Advertisement
gr4ph0s

Untitled

Oct 16th, 2017
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. class A
  2. {
  3.     public:
  4.         Int32 test;
  5. }
  6.  
  7. class B: public A
  8. {
  9.     public:
  10.         Int32 bidule;
  11. }
  12.  
  13. void Mafunc(void* MyObj)
  14. {
  15.     (A)MyObj;
  16. }
  17.  
  18. main()
  19. {
  20.     auto toto = new B();
  21.     Mafunc(toto);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement