Name Conflicts

Same name can be attached to two objects of two different classes in a object diagram. How is the code generated in that situation? Will the names be mangled/chnaged or something?

Dear johnqpublic,

Does your Object Diagram mean the Sequence Diagram & Communication Diagram? The objects are not share in those diagrams even they are with the same name. The situation is just like having two variables with same name in two different functions. If you have any further questions, please feel free to contact us again.

Best regards,
Rain