function with name X
Type B has a function with name X
There is a fucntion named Y that gets an object as an output and calls it's X function
So you can pass both A and B to Y
yes, assuming: A = someType B = otherType X = isEmpty method Y = isEmpty function
Обсуждают сегодня