There are multiple types of UML relations in a class diagram. Here is a list, which shows how and when to use different relations with short examples. Association An association is a relationship, where 2 components interact with each other in some way, but are not dependent or related with each…