Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class FooBar
- {
- public:
- FooBar();
- ~FooBar();
- };
- FooBar::FooBar()
- {
- std::cout << "constructor" << std::endl;
- }
- FooBar::~FooBar()
- {
- std::cout << "destructor" << std::endl;
- }
- int main()
- {
- FooBar test;
- }
Add Comment
Please, Sign In to add comment