Default Class Operators
eventhough i've been using c++ for a while now. i have a basic question about operators ("=", "+"...etc) used on classes. i'll give an example:
what is going to happen to a1? can i find information anywhere on the internet about the default operators for classes?
A a1 ;
A a2 ;
a1 = a2 ;
After than a1 will be a memberwise copy of a2. Unless you have overloaded operator= to something differently (for example, a deep copy).
thanks for clearing that up