Question
OOP - Interfaces
Is it a good approach to use Interfaces to call methods from others class?
Use the Interface to avoid callback chains or events listeners...
Example:
Class A contains reference to Class B and Class C.
Class C needs to call method in Class B.
Instead of sending callback to C from A that calls method in B, create a reference from Class B interface on Class C and call the method from that reference.
Is this the "good" OOP way?