But i would lilke to know , if there exist an interface , with in that an interface there exist an another interface ..... in that an method is there .if that inner interface is an static than how u will implement . that method .............
An interface doesn't actually implement any behavior. It only defines behavior.
So if you define a method called print1() the code for printing out a 1 would not actually be in the interface class. The behavior would have to be defined by a class that implements the interface.
public interface Print1
public void print1();
public class ExampleClass implements Print1
public void print1()
Since an Interface has no behavior it cannot be a container and therefore it cannot contain another interface. Now, a Interface can define behavior that says its Implementing class can return a different Interface.
public interface A
public B getB();
public interface B
public static String exampleStaticMethod();
Then its easy to call the static method on B.
public static void main(String args)
A a = new ImplementationOfA();
I didn't meant to correct you... Actually I didn't even know you posted that ;)
That's just one of the things I find really weird about interfaces and it took me a while to grasp it. I always thought it was, 'you extend classes with special functionality', but 'implement interfaces'. I guess it's just different when you're talking about interfaces. Oh well, I don't use them very often.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...