Class Diagram의 구성

Class Diagram에는 다양한 요소들이 있음

Untitled

상자는 Class를 의미함

Untitled

open arrowhead상속을 의미

inherits from 으로 읽기보다, is a 로 읽기

Untitled

Sheep Dog is a Dog


Untitled

Property 를 의미할 때에는 plain arrowhead 사용

has a 로 읽으면 됨

Untitled

Farmer has a Dog

Class Diagram에서는 class가 복수이더라도, 항상 단수로 작성해야 함

Untitled

Farmer 가 여러 마리의 Doghas a 하고 있는데도, Dogs라고 쓰지 않고, Dog라고 작성