Guest User

Untitled

a guest
May 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class FooBar
  4. {
  5. public:
  6. FooBar();
  7. ~FooBar();
  8. };
  9.  
  10. FooBar::FooBar()
  11. {
  12. std::cout << "constructor" << std::endl;
  13. }
  14.  
  15. FooBar::~FooBar()
  16. {
  17. std::cout << "destructor" << std::endl;
  18.  
  19. }
  20.  
  21.  
  22. int main()
  23. {
  24. FooBar test;
  25. }
Add Comment
Please, Sign In to add comment