The difference between abstract classes and interfaces
Abstract Class
The class containing abstract methods is an abstract class, and the statement declared: abstract class
Must be public protected
interface
Abstraction of behavior, statement: interface
Modifier for abstract method: public abstract
Modifier for member variables: public static final
Syntax Level
Design level
Abstract classes are abstractions of things and abstractions of classes; interfaces are abstractions of behaviors, describing a behavioral norm
Abstract classes are abstract descriptions of the entire class, including attributes and behaviors; interfaces can only abstract the behavior of the class.
Attached a picture:
Thank you for reading, I hope it can help you. Thank you for your support for this site!