Senior .Net Developer Question:

Explain me difference between public and static modifiers?

Tweet Share WhatsApp

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.

Read All 60 Senior .Net Developer Questions
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?