Saturday, June 27, 2009

How to declare a method in an Interface?

To declare method in an interface, you just need to write the definition of the method like below.
void ProcessMyData(int id); string GetMyName(int id);
There is no need of writing the modifier as by default all methods in the interface is public.

Read more at http://www.dotnetfunda.com/interview/exam546-how-to-declare-a-method-in-an-interface.aspx

Author: Raja

0 comments: