Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Out of these types of coupling: 5. Data Coupling 4. Stamp Coupling 3. Control Coupling 2. Common Coupling 1. Content Coupling Question 2 (25 POINTS)
Out of these types of coupling:
5. Data Coupling
4. Stamp Coupling
3. Control Coupling
2. Common Coupling
1. Content Coupling
Question 2 (25 POINTS) Assume we design a Java based software for a company. As part of this software, we write a Person class in which we define a method called getDQB0) that gets the birth of date of the person. Also suppose that we create another class called Working with a method inside this class that is called isUUnderEighteen(). The isUnderEighteenO method returns true if the person is under 18 years old. A way to implement this will look as follows: class Working boolean isUnderEighteea(Person p) Date bithDats p.getDOBO: // return true if birtDat18.1 3 / end of Working class 2.A.) (5 POINTS) What type of a coupling is provided in this design? Why? 2.B.) (5 POINTS) What problem will this type of coupling cause? 2..) (15 POINTS) Suggest a new design to fix this problem you've mentioned in 2B. Please write down your new code and also explainStep 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