Explain the differences between static, void and public in C#?
S.no | Public | Static | Void |
---|---|---|---|
1. | An access modifier | A type modifier | |
2. | Declared variables are accessible from anywhere | Declared variables are globally accessible | Variable does not return value |
BY Best Interview Question ON 13 Feb 2019