Download Java and java Official Website
Initialization and cleanup are two security issues.
The constructor ensures class initialization by using the same name as the class name and automatically calls the constructor during initialization.
The default constructor is a constructor that does not accept any parameters.
The function name of the overload method is the same, and the parameter list is unique.
If the actual data type passed in is smaller than the parameter type declared by the method, the actual data type will be prompted.
The char type can match the int type and is passed 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 Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.