冲扬心法

笑声激发自强,发愤、图强、飞身向上

   :: 首页  ::  ::  ::  :: 管理

2018年3月8日

摘要: 以Animal类为例,假设要实现以下4种动物: Dog(狗)、Bat(蝙蝠)、Parrot(鹦鹉)和Ostrich(鸵鸟) 如果按照哺乳类和鸟类来区分的话,可以这样设计: Animal: |--Mammal |--Dog |--Bat |--Bird |--Parrot |--Ostrich 但是, 阅读全文
posted @ 2018-03-08 23:32 风雨一肩挑 阅读(591) 评论(0) 推荐(0) 编辑