How to read and draw UML 2022 | UML association, dependency, composition, aggregation

Опубликовано: 17 Март 2025
на канале: Pawmeowzing
472
9

UML diagram with code example. This video talked about the uses of polymorphism. The application of Java Interface and Abstract Class as well.
Finally the video talk about the relationship between class of UML and Multiplicity.
There is actually another symbol, UML 1.4.2 mentioned that nesting class instead of use black diamond ♦️, we use ⊕︀

For constant like:
private static final String ARG_RESTAURANT = "RestName";
static got underlined so: -ARG_RESTAURANT : String = "RestName"

00:00 Introduction To UML
00:51 Inheritance
00:54 child "extends" parent
01:05 is-a relationship
01:25 Arrow point at direction of parent/super
01:41 Sub-class aka child
02:20 Note: classfield can be static or non static depend on usage. Please use protected instead
02:29 Let's look at the code of the Parent/Superclass. This inheritance is using abstract
02:57 both abstract and interface can achieve polymorhphism. Interface do not have code in it
03:01 you can "implements" multiple interface but "extends" one class only
03:07 abstract class can declare non-static classfield
03:19 Interface discussion
03:34 Abstract Discussion
03:38 Parent/super is General as in more universal
03:50 public abstract boolean gotBreak();
04:19 Use abstract method: same function/method name, but the code inside is different
05:03 Group to parent/super: when share the function/method with same name and same code
05:31 if the method/function code implementation by Car and Tank vary, we'll use abstract method
05:39 The power of polymorhism
06:14 for upcasting
07:03 In conclusion
07:26 if we want to use function/method from parent
09:02 UML
09:30 1. Association
11:22 2. Dependency
12:28 3. Composition
14:28 4. Aggregation
16:00 Multiplicity

#uml
#dsa
#java
#association
#dependency
#composition
#aggregation
#abstract
#polymorphism
#interface
#multiplicity
#inheritance