. The difference between overloading and overriding:
Heavy Duty (Overload) | Override (Override)
1 methods have the same name, number of parameters, different types | Method name, argument list, return value type exactly the same as the parent class
2 Access range for methods not required | The scope of the overridden method provided by the subclass cannot be smaller than in the parent class
3 application in the interior of a class | Applied in the inheritance relationship of the parent-child class
. The difference between an abstract class and an interface:
Abstract Class | Interface
1 Structural Methods | No construction method
Methods in the 2 class are not necessarily abstract methods | All methods in an interface are abstract methods
3 multiple inheritance not allowed | Multiple inheritance allowed
The difference between overloading in Java and overriding abstract classes and interfaces