One thing always comes on my mind while coding in OOP is that 'communication between classes'
I am searching for a effective communication mechanism between different classes in a OOP sytem.
Cases:
Code: Select all
class A{
//what should be the rule when it requires to communicate with B, C & D classes
}
class B{
//what should be the rule when it requires to communicate with D classes
}
class C{
// any other...
}
class D{
// what should be the rule if it requires to communicate with C class
}Can anybody point the good communication mechanism between different classes.
Thanks in advance for the valueable help.