Hi
Here is a nice simple Yes/No question, Can I use an interface like this...
This is a class with an interface, and one that implements this interface
Here is the question..Its about using the object declared as the interface...Code:Public class Ifaces Public interface theInterface Public sub doSomething() End Interface End Class Public class Test Implements Ifaces.theInterface Public sub dosomething implements,blablabla msgbox("Hello Interface World") end sub End sub
In the real instance of this application, Test will be unknown, all I know is that it will implement the interface, it will be loaded as a plugin, I just named it here as test to avoid the rest of the code for loading the assembly from which it will come from...
Sorry if I am not clear enough with my explanation...Code:Dim objTest as Test Dim obj as Ifaces.theInterface = objTest obj.dosomething




Reply With Quote