Hi! I noticed you successfully created an aggregation connector (with the hollow diamond) in Figma. I only managed to find the solid diamond connector. Could you please share how you achieved this hollow diamond connector? Thanks a lot!
I have few queries. Please let me know your inputs.
1) In "Combined Example" snapshot
1.1) Why Animal call is shown as abstract/italic. Since interface is inheritance (Solid arrow) should not abstract/italic be removed.
1.2) If still if Animal to be abstract, then in that case eat() & sleep() methods also be present in Dog & Cat classes and change the arrow as dotted (Realization).
2) For Inheritance and Realization whether arrow should be hallow arrow head or solid head.
3) Can you please elaborate more on the difference between Association & Dependency.
Aggregation: Person has an aggregation relationship with Pet, indicating that a person can have multiple pets.
according to your diagram , the Person class has an association relationship with the Pet class, not aggregation, because the Person class doesn't hold a reference to Pet objects or manage their lifecycle. plzz correct me if i am wrong
Thanks for the clear explation. Really appreciate!!!
One question, why does interface "Drawable" has "erase" as a private method ? Is it because after Java 9, interfaces can also have private methods ? I think UML should be language agnostic, isn't it ?
Crystal clear explanation bro thanks for sharing 💯💯
thank you so much!
Awesome content 👏.. may I know which tool you have used to create these diagrams
Hey, thank you!
I used Figma for this one.
Hi! I noticed you successfully created an aggregation connector (with the hollow diamond) in Figma. I only managed to find the solid diamond connector. Could you please share how you achieved this hollow diamond connector? Thanks a lot!
Great post and clear visuals. Do you also use things like Structurizr? https://packagemain.tech/p/software-architecture-diagrams-c4
Hey, I used Figma for this one.
Got it. I use Miro mostly for diagrams/flows, they also have a UML template, but unfortunately it's not free.
yeah, I have tried Miro but it's paid. Figma is free for most of my current use-cases.
Splendid explanation.
Here is a Resources to draw such using easy templates for those who are seeking a tool just like me - https://creately.com/diagram-type/class-diagram
Thank you for the content.
I have few queries. Please let me know your inputs.
1) In "Combined Example" snapshot
1.1) Why Animal call is shown as abstract/italic. Since interface is inheritance (Solid arrow) should not abstract/italic be removed.
1.2) If still if Animal to be abstract, then in that case eat() & sleep() methods also be present in Dog & Cat classes and change the arrow as dotted (Realization).
2) For Inheritance and Realization whether arrow should be hallow arrow head or solid head.
3) Can you please elaborate more on the difference between Association & Dependency.
Thanks & Regards
Vishnu Beema
Aggregation: Person has an aggregation relationship with Pet, indicating that a person can have multiple pets.
according to your diagram , the Person class has an association relationship with the Pet class, not aggregation, because the Person class doesn't hold a reference to Pet objects or manage their lifecycle. plzz correct me if i am wrong
Difference between association and dependency not cleared.
Hi don't you think Aggregation and Association are cross used in example
meaning for aggregation Car Class has Engine Class in attributes similarly in example Person has Phone but why you have used Association there ?
thank you so much for writing this blog
thank you so much for writing this blog
if Person has association with Phone, is the direction pointed is correct or did i got wrong understanding?
Person "uses-a" phone.
Is association arrow direction correct ? If, yes can you please explain?
I was looking for this comment. I think it should be other way around.
Is the difference between abstraction and Interface is that abstraction can be used for code reuse but interface not?
I am confused about when to use Association and when to use dependency? What is the difference?
Thanks for the clear explation. Really appreciate!!!
One question, why does interface "Drawable" has "erase" as a private method ? Is it because after Java 9, interfaces can also have private methods ? I think UML should be language agnostic, isn't it ?
If you are looking for a Diagrams-as-Code approach where you use text to draw your diagram take a look at https://cloudnativeengineer.substack.com/p/enhancing-software-design-with-diagrams to learn more. The main benefits is that they are fast to draw and they can be version controlled next to your application or IaC code