在面向对象设计中,传递对象通常能提供较好的封装,因为对象字段的变化不需要改变方法签名。
With object-oriented designs, passing the object often provides better encapsulation, in that changes in the object fields don't require changes to the method signature.
在面向对象设计中,传递对象通常能提供较好的封装,因为对象字段的变化不需要改变方法签名。
With object-oriented designs, passing the object often provides better encapsulation, in that changes in the object fields don't require changes to the method signature.
应用推荐