I
I
iBadCoder2020-06-07 16:28:45
OOP
iBadCoder, 2020-06-07 16:28:45

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

1 answer(s)
#
#, 2020-06-07
@iBadCoder

like an interface. and what are the problems?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question