Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- // If the compiler generated functions are not used, they are not generated
- using namespace std;
- class dog {};
- // is equivalent to
- class dog
- {
- public:
- dog(const dog& rhs) { } // copy constructor
- dog& operator= (const dog& rhs) { }; // member by member copying
- dog() { }; // 1. Call base class's default constructor
- // 2. Call data member's default constructor
- ~dog() { }; // 1. Call base class's default destructor
- // 2. Call data member's default destructor
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement