What is difference between abstract class and interface
2012-05-19 04:55
417 查看
1. A sub class could implements more than one Interface, however it could only extends one Abstract class
2. Every method in interface should be abstract,but this is not necessary in abstract class
3. Interface will contain only final static variables, but abstract class could have final variables and Instances Variables.
2. Every method in interface should be abstract,but this is not necessary in abstract class
3. Interface will contain only final static variables, but abstract class could have final variables and Instances Variables.
相关文章推荐
- What’s the difference between an interface and an abstract class in Java?
- difference between abstract class and interface
- What is the difference between Class Path and Build Path
- What is the Difference Between Type and Class in
- Differences between abstract class and interface
- [置顶] What is the difference between Category and Class Extension?
- 【转载】#445 - Differences Between an Interface and an Abstract Class
- what is difference between equals() and contentEquals() of String class?
- What is the difference between NoClassDefFoundError and ClassNotFoundException?
- Difference between Abstract Class and Interface in Java
- difference between Interface and abstract class in Java
- What is the difference between @staticmethod and @classmethod in Python?
- Java - Difference between Abstract class and Interface
- Difference between Abstract class and interface
- difference between Abstract class and interface in java
- difference between Abstract class and interface in java
- What is the difference between supervised learning and unsupervised learning?
- What is the difference between a pack slip and a pick slip?
- In SQL, what is the difference between a left join and a left outer join?
- What is the difference between AWT and SWT?