OOP: Object-Oriented Programming
Process-oriented programming, focusing on the realization of functional methods
Object-oriented programming that abstracts a substance into a class
How much, the same event occurs on different objects back to produce different results
means that objects of different classes are allowed to respond to the same message. That is, the same message can take many different behaviors depending on the sending object.
There are three prerequisites for a multi-existence:
1, to have inheritance;
2, to have a rewrite;
3. Parent class reference to child class object
Overloaded, the method name is the same, but the parameter type and number are different, and the return value type can be the same or the same.
The return type cannot be used as a distinguishing criterion for overloaded functions;
When invoking a method, it is polymorphic to decide which method to use by passing to them the number of different parameters and the type of parameter.
Override, if you define a method in a subclass that has the same name and parameters as its parent, we say that the method is overridden.
Method overrides are also called method overrides. Method has the same method name, return type, and parameter table
Java Basics Review Notes