Learning immediately: https://edu.csdn.net/course/play/20589/257768?utm_source=blogtoedu
Method syntax:
[public] static 返回值类型 方法名 (参数列表)
{
//方法体
}
1. public: access modifier, can be omitted, this method is public represent
2. static: static representation
3. Return Value Type: int, string ...... without returning void
4. The method name: Pascal naming rules, each capitalized
The parameter list: parameter can not, however parentheses must be
6. Method call: the class name of the method name (parameter);.