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

Can we have a variables inside the interface?



Posted By: Avi Date: 3 July 2010 01:54:37 PM
 Answer:

No, we can have only methods, properties, indexers and enums inside the interface.


Posted By: eTechPlanet


Date: 3 July 2010 01:54:37 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image kMyrQc
Related Questions
C# : What is the use of the dispose method in C#?

What is the use of the dispose method in C#?

Dispose() method is called programatically by the user and it is used to de-allocate the unused obje....
Category: C# Date: 10/1/2010 11:50:31 AM
C# : What is Lambda Expression in C#?

What is Lambda Expression in C#?

Lambada Expression is an anonymous function that can hold statements and expressions. It can also b....
Category: C# Date: 10/1/2010 11:49:31 AM
C# : Write a code in c# to run the program at particular time?

Write a code in c# to run the program at particular time?

public static void Main() { Timer t = new Timer(); t.Elapsed += new ElapsedEventHandler(OnElapsedTim....
Category: C# Date: 10/1/2010 11:48:31 AM
C# : Who developed C# and when?

Who developed C# and when?

C# was developed in 2000 is known as Microsoft's flagship language. It was developed by Microsoft wi....
Category: C# Date: 10/1/2010 11:47:31 AM
C# : Give some difference between C# and C++?

Give some difference between C# and C++?

1. C++ code usually compiles to assembly language whereas C# compiles to Intermediate language . 2. ....
Category: C# Date: 10/1/2010 11:46:31 AM