What is the purpose of a delegation pattern?

前端 未结 4 1000
一个人的身影
一个人的身影 2020-12-08 04:45

I was looking through the source to SensorManager in Android and found that when you register a SensorEventListener the SensorManager passes contro

4条回答
  •  感情败类
    2020-12-08 04:56

    in a very simple sentence I can say: the main purpose of Delegation is to shields your objects from implementation changes to other objects in your software. read more here

提交回复
热议问题