Re: Variables and Interfaces
I haven't done anything with interfaces, but I was always under the impression that an interface exposed a set of properties and functions from an underlying object. Is that not the case?
Re: Variables and Interfaces
What happens is that the main object is exposing the properties and functions from the other interfaces. But those interfaces need to know a couple of variables that is in the MainObject interface. I hope that makes sense (and I hope I am doing it right). This is the first time I have dealt with interfaces. I had a nice pretty class that worked, then my boss said he wanted it done with interfaces. :eek2:
Re: Variables and Interfaces
Ok....Here is what I thimk I am going to do. I'd like to know if this is a good way or not to do it. And if not what is a better way. I am creating properties in the classes that get implemented, but I am not adding them as part of the interface. That way MainObject can access these properties, but they can not be accessed through the interface. Let me know what you think.
Thanks