Which of the following correctly is true about the principle of separation of interface and implementation in Software design
Answers
Answered by
9
the options a), b), c ) and d) are missing.
When the interface and implementation are separated, the clients are not forced to implement the design of the interfaces that they do not use.
So the clients implement only those interfaces, that they use.
This is a principle in OOPS, object oriented software design. Groups of related methods are put in separate interfaces.
When an application having interfaces, classes is to be extended to create another module, in the new module they have to implement all the methods defined in the interface. Then in the new module they may not required to use all the interfaces and all the methods. So separating interface and implementation helps proper design using OOPS.
This is the principle of segregation of interface and implementation.
When the interface and implementation are separated, the clients are not forced to implement the design of the interfaces that they do not use.
So the clients implement only those interfaces, that they use.
This is a principle in OOPS, object oriented software design. Groups of related methods are put in separate interfaces.
When an application having interfaces, classes is to be extended to create another module, in the new module they have to implement all the methods defined in the interface. Then in the new module they may not required to use all the interfaces and all the methods. So separating interface and implementation helps proper design using OOPS.
This is the principle of segregation of interface and implementation.
Similar questions