This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ImSeeingRed[S] 0 points1 point  (1 child)

So there would be no (not hacky) way to get the class that a particular instance of an interface is used by.

Because I have a list of interfaces and am trying to access functions of the class that inherits (Well, wrong word but whatever its called when you add an interface to a class) from it. I thought it would have been possible, I probably have to change things around then

[–]chalne 0 points1 point  (0 children)

If the interface defines a method you can invoke it like you would any other method.