0 votes
in C Sharp by
What is the difference between public, static and void?

1 Answer

0 votes
by

You can access public declared variables anywhere in the application.

Static declared variables are globally accessible without creating an instance of the class.

Void is a type modifier that specifies that the method doesn't return any value.

Related questions

0 votes
asked Jun 16, 2019 in JAVA by reins.robin
0 votes
asked Oct 11, 2020 in JAVA by SakshiSharma
...