I have a issue where I\'m working with a particular interface for quite a lot of things. However, I have a particular method that I want to be available only to a particular
One possible idea I just thought of would be to define a second interface for the internal method:
interface IThing {
function thisMethodIsPublic():void;
}
interface IInternalThing {
function thisMethodShouldOnlyBeVisibleToCertainClasses():void;
}
That way the method would not be visible without type casting when working with IThing, but would be when you explicitly type cast as IInternalThing. This doesn't really solve the problem but it makes that method a little more hidden.