13.final关键字

1.final修饰的变量只能赋一次值,不赋值时,会提示初始化

2.final修饰的方法不能被重写

3.final修饰的类不能被继承

原文地址:https://www.cnblogs.com/rrb520/p/5272115.html