Question 3 (students need to only write justifications) Connascence Here is a simplified class someone wrote called "SendMail". class SendMail { private Mailer mailer = new Mailer (); mailer.setReceipient(“example@email.com"); mailer.setSender(“myself@company.edu"); mailer.setSubject(“Urgent: something here"); mailer.send(); mailer.setcC(“supervisor@company.edu"); } Several supervisors in the company started to complain about not receiving emails. You realise there is a small problem with the code and you realise it is a classic example of connascence. 1) What type of connascence does this code illustrate?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Need help with this question. Thank you :)

 

Question 3 (students need to only write justifications)
Connascence
Here is a simplified class someone wrote called "SendMail".
class SendMail {
private Mailer mailer = new Mailer ();
mailer.setReceipient("example@email.com");
mailer.setSender(“myself@company.edu");
mailer.setSubject(“Urgent: something here");
mailer.send();
mailer.setCC(“supervisor@company.edu");
}
Several supervisors in the company started to complain about not receiving emails. You realise there is a
small problem with the code and you realise it is a classic example of connascence.
1) What type of connascence does this code illustrate?
Transcribed Image Text:Question 3 (students need to only write justifications) Connascence Here is a simplified class someone wrote called "SendMail". class SendMail { private Mailer mailer = new Mailer (); mailer.setReceipient("example@email.com"); mailer.setSender(“myself@company.edu"); mailer.setSubject(“Urgent: something here"); mailer.send(); mailer.setCC(“supervisor@company.edu"); } Several supervisors in the company started to complain about not receiving emails. You realise there is a small problem with the code and you realise it is a classic example of connascence. 1) What type of connascence does this code illustrate?
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,