what is the difference between r

2016-10-12  本文已影响26人  Megamind_China

On the implmentation level a provided interface is the interface implemented by a class (in the most common sense, e.g. a class B implements the interface I). Required interface would be any use of an interface by a component (e.g. if a class A defines a method that has the interface I as a parameter, this means that class A has a required interface I).

required属于A的变量
provided属于A实现的接口
required也用在方法的参数里

学习UML资料
链接

上一篇 下一篇

猜你喜欢

热点阅读