Abstract class and Interface
来源:互联网 发布:红极一时的网络歌曲 编辑:程序博客网 时间:2024/05/22 15:26
什么时候用抽象类,什么时候用接口?
如果这个概念在我们脑中确确实实存在 —> 用抽象类
如果这个概念仅仅是某些方面的一个特性,比如说会飞的(flyable),会动的(moveable)—> 设成接口
- 在模糊的时候,一般设成接口(原因是:实现了这个接口之后,还能从其他的抽象类继承,这样更灵活。但是如果继承了抽象类了就不能继承其他抽象类了。)
0 0
- Interface And Abstract Class
- Interface and abstract class
- Abstract class and Interface
- Abstract Class And Interface
- interface and abstract class
- Abstract class and interface
- Interface and Abstract Class 区别
- java interface and abstract class
- Java-Abstract Class and Interface
- Explaination for Class, Abstract Class and Interface
- Difference between Abstract class and interface
- Differences between abstract class and interface
- Java - Difference between Abstract class and Interface
- difference between abstract class and interface
- interface and abstract class in java
- abstract class和interface
- abstract class和interface
- Abstract class versus Interface
- java 线程同步
- jquery验证规则
- Suricata规则编写——HTTP关键字
- android学习一点day01
- Android-->Launcher拖拽事件详解【androidICS4.0--Launcher系列二】
- Abstract class and Interface
- Linux下无线上网
- vbox ubuntu adtbundle 手机调试
- C01函数
- 探秘Spring的PropertyEditor
- iOS 设计模式之工厂模式
- JDK api下 SOAP 消息 ,以及 weblogic部署遇到的问题。
- Android 4.0 Launcher2源码分析——Workspace滑动
- 关于THREADINFO结构