Help with understanding C# code and porting to Objective-C

后端 未结 7 1361
心在旅途
心在旅途 2021-01-20 15:35

Ok, I have this prototype that was written by someone else in C# and I\'m trying to put it into Objective-C. Now, I haven\'t had any formal experience with C# yet, so I don\

相关标签:
7条回答
  • 2021-01-20 16:12

    The 4th and 5th lines are both constructors.

    The 4th line one is the "default" constructor, which in this case does not initialize any variables.

    The constructor on the 5th line sets the variable named value to the parameter passed in.

    0 讨论(0)
提交回复
热议问题