Jump to content
  • Advertisement
Sign in to follow this  

linking uml and c++

This topic is 5025 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, i'm new to uml diagrams and i d'like to know if the following is correct: composition is used when class1 has a member to class2 and class2 is deleted by class 1 aggreggation is used when class1 has a member to class2 and there is a whole/part relation association is used when class1 has a member to class2 dependency is used when class1 is dependent of class2 by a function parameter ex: class1::do(class2 var) We can find all this kinds of dependencies in our .h files. There can exist some extra dependencies in our cpp files like this: class1::do1() { cAdapter *adapter = engine->getAdapter(); } or class1::do2() { cAdapter adapter; } Now class1 is dependent from cAdapter in the cpp file. this is not seen in the class diagram.Is this correct? thx in advance [Edited by - Freaker13 on January 19, 2005 6:02:16 AM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!