You need to 'overload' the copy assignment operator...
 


"Sahu, Nishi" <[EMAIL PROTECTED]> wrote:

Hi All!!
see this problem...

Suppose that objects A, B, and C are instances of
class MyClass (MyClass A, B, C;). How should you
design an assignment operator so that the "A=B=C;"
statement would be allowed by a compiler but
"(A=B)=C;" would not be allowed by a compiler?

BSR
Nishi Sahu


           
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com







To unsubscribe : [EMAIL PROTECTED]




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=635650508


Yahoo! Groups Links

Reply via email to