Initialization and Cleanup (cleanup) are two issues that involve security.
The constructor ensures that the class is initialized with the same name as the class name, and the constructor is called automatically during initialization.
The default constructor is a constructor that does not accept any arguments.
Overloaded methods have the same function name, and the argument list is unique.
If the actual data type passed in is less than the formal parameter type of the method declaration, the actual data type is prompted.
The char type can match the int type and pass in as a parameter.
When a function does not have a constructor, the compiler automatically creates a default constructor; If a constructor is defined, the compiler does not create a default constructor.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java-thinking in Java 5th chapter initialization and cleanup