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

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

A继承B,A拥有B。

原文地址:https://www.cnblogs.com/ztt0918/p/8043948.html