Accessing a public item through an interface

Jul 5 2006 10:49 AM
Hi, Hopefully somone can point me in the right direction on this.. I have an application that has to be able to handle multiple file types, so im using an interface to access the created object. So i have class1 and class2 and they both implement my interface, at loadtime the app creates one of these objects depending on the format. Everything about this works fine, but each of these classes have an array of public items and my question is: Is it possible to access these public items through the interface? eg: myObject.items[4] In case its not clear what im trying to do i made a sample app with the exact same structure: http://www.turnipfan.com/sample_code.rar Thanks for any help, -Dave