C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 499 Page Views: 

Can you declare static variable in method scope?



Posted By: Avi Date: 15 October 2010 12:22:46 AM
 Answer:

No


Posted By: avibtech


Date: 15 October 2010 12:22:46 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image HMHI9A
Related Questions
C# : Can we have a variables inside the interface?

Can we have a variables inside the interface?

No, we can have only methods, properties, indexers and enums inside the interface.
Category: C# Date: 7/3/2010 1:54:37 PM
C# : What is static class and what is use of this?

What is static class and what is use of this?

Static class we define when we do not want to create a object of class, all methods of static class ....
Category: C# Date: 7/3/2010 1:54:06 PM
C# : What are the properties of abstract class?

What are the properties of abstract class?

1. Abstract class can contain the prototype of method and/or implementation of methods. 2. Direct o....
Category: C# Date: 7/3/2010 1:50:28 PM
C# : How is a read-only property defined in C#?

How is a read-only property defined in C#?

public returntype PropertyName { get { //property implementation goes here } // Do not write the se....
Category: C# Date: 2/5/2010 1:51:32 PM
C# : How would you implement inheritance using VB.NET/C#?

How would you implement inheritance using VB.NET/C#?

When we set out to implement a class using inheritance, we must first start with an existing class f....
Category: C# Date: 2/5/2010 1:49:08 PM