Which statement is/are correct about Static keyword?

 Posted by vishalneeraj-24503 on 1/2/2015 | Category: Visual Studio Interview questions | Views: 871 | Points: 40
Select from following answers:
  1. If the static keyword is applied to a class,all the members of the class must be static.
  2. Static methods can only access static members of same class. Static properties are used to get or set the value of static fields of a class.
  3. Static constructor can't be parameterized.
  4. This keyword can be used with classes,fields,methods,properties,operators,events,and constructors,but it cannot be used with indexers,destructors,or types other than classes.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response