subject

Assume the following two classes as Person and Working: class Person { int personID, age; String fName, middleName, lastName; ... // the code here is irrelevant to the question } // end of Person class class Working { int personAge; boolean isUnderEighteen(Person p) { personAge = p. age; if personAge <18 System. out. println("The person is under age and cannot work"); else System. out. println("The person can legitimately work"); } } // end of Working class

A.)What type of a coupling is provided between Person and Working classes in this design? Why?B.) What problem will this type of coupling cause?C.) Suggest a new design to fix this problem you’ve mentioned in 2B. Please write down your new code and also explain.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 12:30
Can someone with my technology homework? ? i’m not very good with rulers. i need it asap though
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
Assume the following two classes as Person and Working: class Person { int personID, age; String fNa...
Questions
question
Business, 26.10.2020 14:00
question
Mathematics, 26.10.2020 14:00
question
Mathematics, 26.10.2020 14:00
question
Geography, 26.10.2020 14:00
question
Mathematics, 26.10.2020 14:00
Questions on the website: 13722361