如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
离开办公室代理要求的受限制的权限级别不允许用户执行任何会对安全性造成影响的方法。
The restricted level of rights required by the Out of Office agent does not allow the user to perform any methods that impact security.
那你怎么看待蔡女士描述的教育方法——比如,不允许她的孩子看电视?
What do you think of the parenting techniques Chua described—for instance, not letting her kids watch TV?
应用推荐