keyword-- final

Use the final statement of class cannot be inherited(继承)

 

Use the final statement of method cannot be recovered by its subclass(子类)

 

use the final statement of rariate(变量) cannot be changed . That is to say it becomes a constant(常亮).

posted @ 2016-05-18 12:30  包大人2  阅读(126)  评论(0)    收藏  举报