5.7.2 Final methods



有两种 final 方法:
  1. 在方法上加一把锁,防止继承者改变它的意义。
  2. 编译器把对该方法的调用变成 inline 调用。
private is final.

Next Page