![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
cccccc9955
这个作者很懒,什么都没留下…
展开
-
C# Class - Field, Property, Method
ClassesField, property, methods are members in classesclass Forest {//A constructor with parameters are built to creat object and set those values at once public Forest(string name, string biome, int area) { this.Name = name; this.Biome = biome;原创 2020-10-06 09:05:20 · 225 阅读 · 0 评论 -
C# - Method & Loop
MethodsMethod Declaration:the method nameparameter typesparameter orderparameter namesreturn typeoptional modifiers//y and z are optional parameters.static int AddSomeNumbers(int x, int y = 3, int z = 2){ return x + y + z;}Methods that do n原创 2020-10-05 18:54:41 · 230 阅读 · 0 评论