interface and abstract

I want to remember again the difference between interface and abstract that appears in java.

interface --Just declare (define) the numbers together -(Implementation is implemented and used) -(Cannot instantiate because it is not a class) --If you define an interface type as a formal argument, all classes that inherit that type can be received as arguments.

abstract --Interface function + Can be implemented --If you define an abstract type as a formal argument, all classes that inherit that type will be accepted as arguments. --Cannot instantiate Implement and use a class that inherits the abstract class

Recommended Posts

interface and abstract
abstract (abstract class) and interface (interface)
Difference between interface and abstract class
[JAVA] Difference between abstract and interface
Inheritance and interface.
Proper use of interface and abstract class
Interface / abstract class / override
Advanced inheritance abstract, interface -java
interface
[JAVA] What is the difference between interface and abstract? ?? ??
Summary of "abstract interface differences"
Use of Abstract Class and Interface properly in Java
Java abstract methods and classes
[Java beginner] About abstraction and interface
Flowing interface trial and error memo
Interface benefits
new interface
Abstract method
[java] interface
[Java / Swift] Comparison of Java Interface and Swift Protocol
JAVA learning history abstract classes and methods
[Details] Let's master abstract classes and interfaces! !!
[Java] Contents of Collection interface and List interface
Java Basic Learning Content 6 (Inheritance / Abstract Class / Interface)
[ev3 × Java] Interface, implementation and inheritance (event handling)
Understand the difference between abstract classes and interfaces!
[Java] [javaSliver] The interface and abstract classes are complicated, so I will summarize them.