Software Development, Software Architecture, Programming.
XMLDictionary object, and the TextDictionary object all have higher functional cohesion than the methods in Example 1. As a result, it is easier to make changes. We wouldn’t have to hunt down multiple contexts when adding a file format. Lets now analyze the examples using the principle of coupling.