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!
There were a lot of questions asked, so I will list the
topic (and add a what is "topic" and know pros/cons).
Extreme programming, what is a transaction, various SDLC
design approaches, what is a namespace, define a good test
case, what is a stored proc, webservice? design patterns?
linker? compiler? access modifiers? stack vs. queue? arrays
vs. linked lists? sorting algorithms? recursion? OOP
windows c# using datagridview in edit form sql server
how to Create a datagridview control with check box column
with 8rows in it, the maximum number of check boxes checked
should be 3, when user checks the 4th corresponding message
should be displayed and check box should be checked. User
can uncheck the checked boxes
Note: read-only property should not be used
Write a console application and implement the ternary operator to decide whether the
age a user entered after being prompted is allowed to vote or not(given that only citizens
between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical
Asha buys 16 Chocolates for rs 12 and 24 chocolates for rs
20, if she sold them 30 chocolates for rs 30 then what is
the Gain/Loss percentage?
If one person ate 100 grapes in 5 days and 6 more each day
from starting, what was the no of grapes he ate on first
If seven men P, Q, R, S, T, U, V parked his car, P and Q
something like that.
6 student J, K, L, M, N, O went for picnic in 2 batches, K
and L have to go together, M and O do't go together, if O
and L go in one batch then which of these combination will
a boat can go upstream and down stream, if it goes 5/2
times of downstream at the speed of 6 kmph then what will
be the speed of upstream?
A, B, C, D, E sitting on a table, A sits 2 seat left from B
and C sits 2 seat right from B then what will not be the
What exactly happens when we debug and build the program?
What issues can be faced while delivering code?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc.,
in C#.NET 2005 Windows Application? (like who we will do
themes in ASP.NET using .CSS and .SKIN files). Urgent!!
what is .NET framework architecture ??
code for arranging given number in possible permutation ways
4. Describe the process when we send a request URL? And who
is responsible for that?
1. Describe page life cycle?
1. What is lazy loading?
2. What is delay signing?
3. How to transfer view object to presenter in MVP?
4. How to create a generic class?
5. What is Ajax object?
6. What is explicit interface implementation?
7. I1, I2 interfaces have same methods (say PrintName)
explicitly implemented in class C1. Now how to call
PrintName method from I1?
8. I have a list of Customers. List the customer with
maximum orders using LINQ.
what is main function of alternate teamplate of datalist?