Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Test
- {
- public:
- Test()
- {
- cout <<"Konstruktor"<<endl;
- }
- Test (Test & o)
- {
- cout <<"Konstruktor kopiujacy" << endl;
- }
- ~Test()
- {
- cout<<"Destruktor"<<endl;
- }
- };
- int main()
- {
- {
- Test t;
- }
- cout << "---"<<endl;
- {
- Test t1;
- Test t2(t1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement