-
Composition has meanings completely different from that of public inheritance.
-
In the application domain, composition means has-a. In the implementation domain, it means is-implemented-in-terms-of.
转载于:https://www.cnblogs.com/zhtf2014/archive/2011/04/04/2005051.html