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 | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4577
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
