1.

Can An Object (in The Architectural Sense) Have Multiple Interfaces? Is Such A Feature Desirable?

Answer»

YES, an object can have multiple interfaces. From an architectural POINT of view there are advantages to having multiple interfaces. Because an object preserves the integrity of DATA it contains, the only way to send MESSAGES to that object is via interfaces. Thus if some object A WANTS to communicate with some other object B, then it has to talk through an interface. One interface does not fit the needs of all objects, thus it is useful to have multiple interfaces to promote communication between different objects that have different requirements.

Yes, an object can have multiple interfaces. From an architectural point of view there are advantages to having multiple interfaces. Because an object preserves the integrity of data it contains, the only way to send messages to that object is via interfaces. Thus if some object A wants to communicate with some other object B, then it has to talk through an interface. One interface does not fit the needs of all objects, thus it is useful to have multiple interfaces to promote communication between different objects that have different requirements.



Discussion

No Comment Found