Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.12 KB | None | 0 0
  1. class Base {
  2. public:
  3.     Base(Foo*);
  4. };
  5.  
  6. class Derived {
  7. public:
  8.     Derived() : Base(&foo) {}
  9. private:
  10.     Foo foo;
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement