Q:

What is the difference between public, static, and void in c#?

0

What is the difference between public, static, and void?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

public: A public declared variables or methods are accessible anywhere in the application.

static: A static declared variables or methods are globally accessible without creating an instance of the class. A static member is by default not globally accessible it depends upon the type of access modified used. The compiler stores the address of the method as the entry point and uses this information to begin execution before any objects are created.

void: A void is a type of modifier that states that the method or variable does not return any value.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What’s a multicast delegate in c#?... >>
<< How will you differentiate between a Class and a S...