having trouble understanding where assignment operator vs copy constructor vs constructor are used in the below cases, help?
Scenario #1
ObjectType newObj = *new ObjectType;
Scenario #2
newObj = theObj;
Scenario #1
ObjectType newObj = *new ObjectType;
using these functions in the following order:
constructor
copy constructor
Scenario #2
newObj = theObj;
using these functions in the following order:
assignment operator