java-那些方法不能被重写

1.final 修饰的
2.static 修饰的
3.private 修饰的:因为私有的在子类中不可见
4.如果跨包的话,修饰符缺省的也不能被重写,因为缺省的挎包不可见
    
When nothing seems to help, I go look at a stonecutter hammering away at his rock, perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before. -- Jacob Riis
原文地址:https://www.cnblogs.com/xhwy-1234/p/12517692.html