Which things are created when an class object is created?

Hi
Someone told me once that when an object of a class is created then 6 things are created automatically.I know the obvious 4 things:
1)constructor
2)copy constructor
3)copy asignment
4)destructor

Which are the rest two?Does anybody knows? Thanks
You get a default constructor if you don't provide any user-defined constructors; you always get the other three.
The compiler-provided copy constructor does a member-wise copy, and the compiler-provided assignment operator
does member-wise assignment.

You get no other methods.
What you meant was more like "Which things are created by default when you declare a class"
The things you listed are functions. They exist for any class/struct and are not created with objects.

As for the actual question, nothing comes to my mind.
Last edited on
Topic archived. No new replies allowed.