Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- #include <iostream>
- class test
- {
- public:
- test()
- {
- cout << "Constructor" << endl;
- }
- ~test()
- {
- cout << "Destructor" << endl;
- }
- };
- int main()
- {
- test *example = new test;
- delete example;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement