Modelling types with UML based on associative arrays

后端 未结 1 881
眼角桃花
眼角桃花 2021-01-23 18:17

Let\'s say there is an PHP subsystem which uses only associative arrays to store some kind of structured data. So in fact there is no mechanism on language level to constraint t

1条回答
  •  迷失自我
    2021-01-23 19:14

    Simply speaking: your design is correct. What you "could" do is to make Address an embedded class of Contact:

    And if you wish so, you could show that it shall be implemented as associative array:

    0 讨论(0)
提交回复
热议问题