继承和组合

继承和组合都可以让一个类有另一个类的功能。

继承是 is-a 的关系,新类有父类的所有属性

组合包含了原有类,生成的新类,可以屏蔽原有类的某些细节。

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
继承和组合 继承和组合 继承和组合 继承和组合   TRANSLATE with 继承和组合 COPY THE URL BELOW 继承和组合 继承和组合 Back EMBED THE SNIPPET BELOW IN YOUR SITE 继承和组合 Enable collaborative features and customize widget: Bing Webmaster Portal Back
上一篇:OpenCV 常用数据结构输出


下一篇:PHP:类(class)和接口(interface)