Chapter 7 1. Coupling & viscidness: disengage jointure and spicy glutinousness a. impinge on gemination b. Using encapsulation c. Responsibility-driven throw d. Remove unstated coupling e. Refactoring 2. Executing without Blue J: master(prenominal) method, tranquil method Terms in Chapter 7: [coupling] The boundary coupling describes the interconnectedness of shed light geniuss. We strive for loose coupling in a system, i.e., a system where each(prenominal) variance is largely autonomous and communicates with other(a) classes via a small, closely defined interface. [cohesion] The expression cohesion describes how well a unit of enrol maps to a arranged undertaking or entity. In a proudly sticking system, each unit of label (method, class, or module) is responsible for a well defined task or entity. Good class design exhibits a high degree of cohesion. [method cohesion] A cohesive method is responsible for 1(a) and only one welldefined task. [class cohesi on] A cohesive class represents one well-defined entity. [code duplication] Code duplication (having the same segment of code in an application much than once) is a sign of incompetent design. It should be avoided. [encapsulation] Proper encapsulation in classes reduces coupling, and thus leads to a bettor design.
[responsibility-driven design] Responsibility-driven design is the process of calculating classes by assigning well-defined responsibilities to each class. This process apprise be used to hold in which class should implement which objet dart of an application function. [localizing change] One of the main goals of a near cl ass design is that of localizing change: mak! ing changes to one class should stomach minimal effects on other classes. [refactoring] Refactoring is the activity of restructuring an vivacious design to maintain a good class design when the application is modified or extended. If you urgency to get a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.