I have this class:
class A { private: int player; public: A(int initPlayer = 0); A(const A&); A& operator=(const A&); ~A(); void foo() cons
When you call new A(a2);
It will call one of the constructors. Which one it calls will depend on the type of a2.
If a2 is an int then the default constructor is called.
A::A(int initPlayer = 0);
If a2 is an object of type A then the copy constructor will be called.
A::A(const A&);