Can interface have virtual methods in c#?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

Why objects are stored in heap in c#?

0 Answers  


In dynamic link library, which api is used for load library?

0 Answers   C DAC,


Can we inherit an interface in an abstract class?

6 Answers   HCL,


Define constructors

0 Answers  


What is difference between overloading and short circuiting?

0 Answers  






Is c# good for beginners?

0 Answers  


What is tryparse?

0 Answers  


What is difference between virtual and override in c#?

0 Answers  


What is the Use Of Interfaces? For example I have a interface as shown below? Interface IMyInterface { public void MyMethod(); } class MyClass : IMyInterface { public void Mymethod() { Some Code } } class Program { static void Main(string[] args) { MyClass obj = new MyClass(); obj.MyMethod(); } } Here What is My Question is? If i remove Interface and run this code, it will executed then what is the Use of the interface? Can any one give me the solution for this Problem? Thanks in Advance!

1 Answers   HCL,


Why can?t you specify the accessibility modifier for methods inside the interface?

5 Answers  


Is char * null terminated?

0 Answers  


Can we define a variable with the access modifier private in an interface?

7 Answers   IBM,


Categories