Question
Sometimes designers find that they can focus on high cohesion, or they can focus on low coupling, but not both. The first principle, high cohesion,
Sometimes designers find that they can focus on high cohesion, or they can focus on low coupling, but not both. The first principle, high cohesion, means that everything in a class is meant to work together. For example, a class to open a bank account wouldn't try to handle a savings account opening and a checking account opening. High cohesion would say those go into different classes. But low coupling says modules should not be dependent on each other.
Discuss how having two different modules handling account opening could increase class dependencies. Which way would you go: one class or two for opening accounts?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started