📜  抽象类和final的区别——Java代码示例

📅  最后修改于: 2022-03-11 14:52:18.154000             🧑  作者: Mango

代码示例1
1-Abstract method should be overriden
 -Final method can't be overriden
2-Abstract method can be inherited
 -Final can't be inherited
3-Abstract can be w/o implementation
 -Final must have implemetation
4-Abstract we can't create objects
 -Final we can create objects(string)
5-Abstract can't be instantiated
 -Final can be instantiated