📜  抽象类和接口java之间的相似性 - 无论代码示例

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

代码示例1
1. We cannot create object using either.
2. All the abstract methods must be overridden by subclass.
3. Both of them don’t have default constructor.
4. By using both we can go for dynamic polymorphism.
5. Both can contain static and final variable.
6. Both inherited from common domain of itself using extends keyword.
7/ Both provide static method implementation.