-
Difference between Abstract Class and InterfaceStaticPL/JAVA 2019. 8. 18. 20:24
1. Overview
Clarifying differences between abstract class and interface.
2. Difference between Abstract Class and Interface
Features Abstract Class Interface Type of methods Abstract, non-abstract Abstract, default, static methods Type of variables Final, non-final, static, non-static Final, static Implementation Able to implement interfaces, able to extend another class Only extends Interfaces Inheritance Able to be Extended using “extends” Able to be Implemented using “implements” Multiple Able to extend another class & implement multiple interfaces Able to extend multiple Interfaces Accessibility private, protected, etc. Public 3. Practices
https://github.com/demyank88/DesignPattern/tree/master/src/main/java/kr/co/practice/Abstract
'StaticPL > JAVA' 카테고리의 다른 글
Thread and Runnable (0) 2019.08.18 Stream (0) 2019.08.18 JAVA Collection Framework (0) 2019.08.18 String, Char, StringBuilder, and StringBuffer (0) 2019.08.18 hashcode and equals (0) 2019.08.18