avatar
Amazon的zoo的设计问题# JobHunting - 待字闺中
f*3
1
4. OOD of a zoo, different types of animals (carnivores/herbivores,
hierarchical inheritance), cages (cage type, cage size, number of each type
of animal can be in the same cage), some of them cannot be put in the same
cage, need predator and prey relationships, what if, for instance, lion eat
1million different animals? i told him i can just put Herbivores in the prey
list of lion. he then asked what if mouse is herbivore, and lions don't eat
mice? (此题也是不断加要求,搞得相当乱)
有两个问题:
1) relationship怎么表示好?可不可以每个animal类内部有一个predator的list?
2) "what if, for instance, lion eat 1 million different animals?"这个怎么答
好?
avatar
f*t
2
同问
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。