继承(is a)与拥有(has)

A继承B,A是B类的一种,即A是B.

 

A继承B,A拥有B。

 

posted @ 2017-12-15 16:58  ztt_tttt  阅读(372)  评论(0编辑  收藏  举报