Senior .Net Developer Question:

Explain me difference between public and static modifiers?

Senior .Net Developer Interview Question
Senior .Net Developer Interview Question

Answer:

To invoke a method, field, or static property, you don’t need to instantiate the class.

On the other hand, to invoke a public method, you need an instance of a class.


Previous QuestionNext Question
What is the concept of inheritance and how it works in .NET?Please explain what is the difference between a class and an object?