final

特性:

  final修饰的类不能被继承;

  final修饰的方法不能被子类重写

  final修饰的变量是常量,只能赋值一次。

posted @ 2015-10-28 12:27  杨岳龙  阅读(117)  评论(0编辑  收藏  举报