Study Notes (57): C # fast entry - the origin and function definitions

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);.

 

 

 

 

 

 

 

 

Published 34 original articles · won praise 0 · Views 294

Guess you like

Origin blog.csdn.net/u013162262/article/details/104979306