Guest User

Untitled

a guest
Jan 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class B
  5. {
  6. public:
  7. B(int n) : num(n) { }
  8.  
  9. private:
  10. int num;
  11. };
  12.  
  13. class A
  14. {
  15. public:
  16. A() : b(10) { }
  17. private:
  18. B b;
  19. };
  20.  
  21. int main()
  22. {
  23. A a;
  24. }
Add Comment
Please, Sign In to add comment