Answer the question
In order to leave comments, you need to log in
How can I pass any class inherited from an interface to a method?
Let's say I have 3 classes with different methods and following a common interface. How can I make it so that they can be passed into one method?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question