Wednesday, March 26, 2008

Difference between composition and aggreation (In UML)?

Both aggregation and composition are special kinds of associations. Aggregation is used to represent ownership or a whole/part relationship, and composition is used to represent an even stronger form of ownership. With composition, we get coincident lifetime of part with the whole. The composite object has sole responsibility for the disposition of its parts in terms of creation and destruction. In implementation terms, the composite is responsible for memory allocation and deallocation.

Moreover, the multiplicity of the aggregate end may not exceed one; i.e., it is unshared. An object may be part of only one composite at a time. If the composite is destroyed, it must either destroy all its parts or else give responsibility for them to some other object. A composite object can be designed with the knowledge that no other object will destroy its parts.

Composition can be used to model by-value aggregation, which is semantically equivalent to an attribute. In fact, composition was originally called aggregation-by-value in an earlier UML draft, with “normal” aggregation being thought of as aggregation-by-reference. The definitions have changed slightly, but the general ideas still apply. The distinction between aggregation and composition is more of a design concept and is not usually relevant during analysis.

Finally, a word of warning on terminology. While UML uses the terms association, aggregation, and composition with specific meanings, some object-oriented authors use one or more of these terms with slightly different interpretations. For example, it is fairly common to see all three UML relationships grouped under a single term, say composition, and then to discuss object-oriented relationships as being either inheritance (generalization) or composition.

Monday, March 24, 2008

Essence of Relationship...


Little girl and her father were crossing a bridge. The father was kind of scared so he asked his little daughter, 'Sweetheart, please hold my hand so that you don't fall into the river.' The little girl said, 'No, Dad. You hold my hand.' 'What's the difference?' Asked the puzzled father. 'There's a big difference,' replied the little girl. 'If I hold your hand and something happens to me, chances are that I may let your hand go. But if you hold my hand, I know for sure that no matter what happens, you will never let my hand go.
' In any relationship, the essence of trust is not in its bind, but in its bond.
So hold the hand of the person whom you love rather than expecting them to hold yours...
This message is too short......but carries a lot of Feelings.

Wednesday, March 12, 2008

Waqt Nahin !!!!


" WAQT NAHI "

Har khushi Hai Logon Ke Daman Mein,

Par Ek Hansi Ke Liye Waqt Nahi.

Din Raat Daudti Duniya Mein,

Zindagi Ke Liye Hi Waqt Nahi.


Maa Ki Loree Ka Ehsaas To Hai,

Par Maa Ko Maa Kehne Ka Waqt Nahi.

Saare Rishton Ko To Hum Maar Chuke,

Ab Unhe Dafnane Ka Bhi Waqt Nahi.


Saare Naam Mobile Mein Hain,

Par Dosti Ke Lye Waqt Nahi.

Gairon Ki Kya Baat Karen,

Jab Apno Ke Liye Hi Waqt Nahi.


Aankhon Me Hai Neend Badee,

Par Sone Ka Waqt Nahi.

Dil Hai Gamon Se Bhara Hua,

Par Rone Ka Bhi Waqt Nahi.

Paison ki Daud Me Aise Daude,

Ki Thakne ka Bhi Waqt Nahi.

Paraye Ehsason Ki Kya Kadr Karein,

Jab Apane Sapno Ke Liye Hi Waqt Nahi.

Tu Hi Bata E Zindagi,

Iss Zindagi Ka Kya Hoga,

Ki Har Pal Marne Walon Ko,

Jeene Ke Liye Bhi Waqt Nahi.........

Monday, March 10, 2008

Too cute Video by a baby Singer, 3yrs old :-)

Hi All,
Just visit this nice song {Celopatra} - baby actress. Its too cute to listen.

Cleopatra Stratan (born October 6, 2002 in Chisinau, Moldova), the daughter of Moldovan-Romanian singer, Pavel Stratan, is one of the youngest people ever to score commercial success as a singer, with her 2006 album La vĂ¢rsta de trei ani ("At the age of 3").[1]

The Video URL is : http://www.youtube.com/watch?v=GDq-E708lHU

I am attaching the Lyrics too : (http://www.justsomelyrics.com/1701046/Cleopatra-Stratan-Ghita-(English)-Lyrics)

*Cleopatra Stratan - Ghita (English Version)*

The coat is inside out,
There is no sun above
Nothing is going good
Since I think of Ghita.
But Ghita's not in town
I asked why he's not around
It seems to me he's gone
He's gone abroad

Hard, I think it's very hard
Want, I don't know what I want
I know that you like me too
Ghita, what is up with you?
Young, come on in or go
Young, tell me yes or no
Ghita, please don´t anger me
Tell me how your life will be
Ghita,Tonight I'm waiting at the wicket
Me at the station I bought a ticket
Come to,
But don't come as you did before
As usually with empty hands...
Who else
Will and sing for you as
I do Entire evening just getting there

Ghita,
Show me a girl who's found of you
That loves you more as much as I do...

Ghita, te-astept diseara la portitaLanga portita de la scoalaVino da numa nu vini cum vii tuDe obicei cu mana goalaCine te mai asteapta ca si mineO seara intreaga numai pe tine.Ghita, arata-mi tu o fata careSa te iubeasca asa de tare!