了解遏制和继承 [英] to Know about Containment and Inheritance

查看:89
本文介绍了了解遏制和继承的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用包含和继承的位置

where to use Containment and Inheritance

推荐答案

继承:将托管对象公开为外部对象
包含:使外部对象能够修改内部对象的行为.

这里介绍一下在以下情况下两者的用法不同: MSDN:.NET Framework中的COM可重用性 [ ^ ]
Inheritance: Exposes the managed object as the outer object
Containment: Enables the outer object to modify the behavior of the inner object.

Here have a look at how both are used differently in the following scenario: MSDN: COM reusability in the .NET Framework[^]


请参阅以下内容:

http://forums.techarena.in/software-development/1294906.htm [ ^ ]

http://www.cheetahtemplate.org/docs/users_guide_html_multipage/webware.background.html [ ^ ]
Refer these:

http://forums.techarena.in/software-development/1294906.htm[^]

http://www.cheetahtemplate.org/docs/users_guide_html_multipage/webware.background.html[^]


这篇关于了解遏制和继承的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆