What is the Difference between public static void and static public void? [Resolved]

Posted by Kanagase under C# on 10/5/2012 | Points: 10 | Views : 2725 | Status : [Member] | Replies : 4
What is the Difference between public static void and static public void?




Responses

Posted by: Saratvaddilli on: 10/5/2012 [Member] [MVP] Bronze | Points: 50

Up
0
Down

Resolved
I think there is no difference between them
public and static are modifiers they can be in any order but the void is the return type which should be placed before a method
so both public static void and static public void are same........

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Kanagase, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 10/8/2012 [Member] [MVP] Bronze | Points: 50

Up
0
Down

Resolved
please mark as answer if you are satisfied with the answer

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Kanagase, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 10/5/2012 [Member] Starter | Points: 25

Up
0
Down
Both same..In default,static void also says it is "public"
public static void also says the same

Kanagase, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kanagase on: 10/8/2012 [Member] Starter | Points: 25

Up
0
Down
thank u

Kanagase, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response