+ 2
Can you name the method anything?
5 Answers
+ 4
naming also have some rules... I think it can not
begin with a number and special character.
Name should be user friendly.
for e.g. If you are creating a method to show largest even no among a group of numbers you can name your method : LargestEvenNumber.
0
No you can't name the method "anything". there are c# reserved words that cannot be used. eg, u can't name a method "class" or "double" u also cannot start a method name with a number
0
You actually can name your method "class" @Nwonah Vincent. Though you need to prefix it with a @
- 1
Yes you can, its always best to give your methods a meaningful name that represents its function.
- 2
yes of cours !