...id cubeByReference( int *nPtr ) { *nPtr = *nPtr * *nPtr * *nPtr; } const修饰 Principle of least privilege (最低权限原则) 授予函数足够的权限来完成任务 const pointers 指针常量 int * const myPtr = &x; 不允许对myPtr赋值 指向常量的指针(也称常量...
基于1个网页-相关网页
请遵循最低权限原则。
Android系统通过这种方式实现最低权限原则(the principle of least privilege) .也就是说,每个应用在只需要完成自己的功能而不需要其他服务的时候,默认只对自己的组件有访问权限。
In this way, the Android system implements the principle of least privilege. That is, each application, by default, has access only to the components that it requires to do its work and no more.
应用推荐