What is the Use Of Interfaces?
For example I have a interface as shown below?
public void MyMethod();
class MyClass : IMyInterface
public void Mymethod()
static void Main(string args)
MyClass obj = new MyClass();
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!
in a town the percentage of total men is 52. the percentage
of total literacy is 48. if total percentage of literate men
is 35 of total population. write a program to find out the
total no of illiterate men and women.