It is a part of a Java task. I have a class called marathon and another one called score/evaluation. The task is following. Each marathon has an evaluation that gets deleted when a run (marathon run) is deleted. So how do I represent that case in uml?
I'm 99% sure about what your professor wanted. What the hell of a kind of learning process is it when he gives you task without explaining the concept first?!! (Just my rant about bad teachers, ignore it) Google for "association vs composition vs aggregation". The key difference is the lifecycle of associated objects. Pay attention to when objects are destroyed.
Обсуждают сегодня