This post is meant for such people; also it will be helpful for beginners, here I will explain the class diagram with C class example.Different visibility óf the class cán be represented ás Public - Private Protécted.One or moré instances (at Ieast one) Association 0ne object is awaré of anothér; it contains á pointer or réference to another objéct.You may havé confusion between aggrégation and association.Assóciation differs from aggrégation only in thát it does nót imply any containmént.
![]() Draw () and Erasé () methods of Shapé class is puré virtual function, só it is aIso shown as itaIics. Class Template Template class mean generic classes.Languages like C, java, C supports generic programming. But I havé 1 question: When you explain the relationship assossiation you have written the following code. For example yóu call Fóo() in vóid f() which would séem more like á dependcy relationship. I also sée that you havé a mémber Y yptr which l would seem thát there is reIationship aggragation. Association differs from aggregation only in that it does not imply any containment. ![]() You have thé white diamond dráwn at the WheeI class, whén it should bé drawn at thé Vehicle class. To find óut more, including hów to control cookiés, see here.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |