Guest User

Untitled

a guest
Jul 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. class BaseA
  2. {
  3.     public:
  4.     void DoSomething()
  5.     {
  6.     };
  7. };
  8.  
  9. class BaseB
  10. {
  11.     public:
  12.     virtual void DoSomething() = 0;
  13. };
  14.  
  15. class Derived : public BaseA, public BaseB
  16. {
  17.     public:
  18.     void BaseB::DoSomething();
  19. };
  20.  
  21. void Derived::DoSomething()
  22. {
  23. }
  24.  
  25. int _cdecl main()
  26. {
  27.     Derived d;
  28.     return 0;
  29. }
Add Comment
Please, Sign In to add comment