Sign in to follow this  
Sfpiano

Overloading the = operator so I can use it in the constructor

Recommended Posts

Example: ClassB& operator = (const ClassA& a ) ... ClassA a; ClassB b = a; As it stand now, I can't do that, I have to do: ClassB b; b = a;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this