Decoupling:- Using a method interface which an encapsulated object must satisfy, as opposed to using the object's class.
Definition:
"Decoupling refers to careful controls that separate code modules from particular use cases, which increases code re-usability. A common use of decoupling in OOP is to polymorphically decouple the encapsulation (see Bridge pattern and Adapter pattern)"
For example, using a method interface which an encapsulated object must satisfy, as opposed to using the object's class.
Definition:
"Decoupling refers to careful controls that separate code modules from particular use cases, which increases code re-usability. A common use of decoupling in OOP is to polymorphically decouple the encapsulation (see Bridge pattern and Adapter pattern)"
For example, using a method interface which an encapsulated object must satisfy, as opposed to using the object's class.
Comments
Post a Comment