Hi Biniam,
IMHO "by reference" and "by value" are implementation details. In a composition relationship the "whole" controls the lifetime of the "part". In a programming language like C++ the "parts" could be managed by value and get automatically removed, but it is also possible to hold "parts" by reference and delete them during destruction of "whole". Dietmar -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Biniam Tesfu (PAC) Gesendet: Dienstag, 12. Februar 2002 12:14 An: '[EMAIL PROTECTED]' Betreff: (ROSE) Composition aggregation Hi all, I have Two classes : class "A" and class "B". There is a Composition relationship between them. Class "A" is the whole and class "B" is part of A. Which one of the following is true? 1- An instance of class "A" contains an instance of class "B" by reference. 2- An instance of class "A" contains an instance of class "B" by value. regards Bin/ ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum ************************************************************************* ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************
