Can interface have virtual methods in c#?
No Answer is Posted For this Question
Be the First to Post Answer
Why objects are stored in heap in c#?
In dynamic link library, which api is used for load library?
Can we inherit an interface in an abstract class?
Define constructors
What is difference between overloading and short circuiting?
Is c# good for beginners?
What is tryparse?
What is difference between virtual and override in c#?
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!
Why can?t you specify the accessibility modifier for methods inside the interface?
Is char * null terminated?
Can we define a variable with the access modifier private in an interface?