.NET - OOPs Concepts

OOPs Interview Question and Answers

41.

Define static members and methods?

The members declared with the keyword static is called as static members. It is also called as class variables. These variables are used when we want to have a variable common to all instances of a class.

The methods declared with the keyword static is called as static methods. It is also called as Class methods. It can be called without using the object. They are also available for use by other classes.