So, can the method be named anything? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So, can the method be named anything?

12th Nov 2017, 11:48 PM
That One Guy
That One Guy - avatar
3 Answers
+ 16
No. You can't name your method static or any reserved keywords.
13th Nov 2017, 12:19 AM
qwerty
qwerty - avatar
+ 10
@David You should call me qwerty.(My old name) Never knew you could put "@" at the beginning of a method name.(I don't know C#)
13th Nov 2017, 3:22 AM
qwerty
qwerty - avatar
+ 3
@[Person with no name with user profile pic containing binary numbers] - What should I call you if I want to refer to you? 😵 In any case, you are correct about not being able to use reserved keywords for method names. Expanding on this point, it is worth mentioning that these can be used in C# if prefixing the method names with an "@" symbol. https://code.sololearn.com/c8B1KhBXZxDm/#cs
13th Nov 2017, 3:15 AM
David Carroll
David Carroll - avatar