Senior .Net Developer Question:
Download Questions PDF

Explain me difference between public and static modifiers?

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.

Download Senior .Net Developer Interview Questions And Answers PDF

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?