Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active September 12, 2023 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/edaade5842cdfa8ddd474c9904942e66 to your computer and use it in GitHub Desktop.
Save mcsee/edaade5842cdfa8ddd474c9904942e66 to your computer and use it in GitHub Desktop.
class Job {
void printAddress() {
System.out.println("This is your job position address");
System.out.println(this.address().street());
System.out.println(this.address().city());
System.out.println(this.address().ZipCode());
// You might even move this responsibility directly to the address!
// Some address information is relevant to a job
// and not for package tracking
}
}
class Candidate {
void printJobAddress(Job job) {
job.printAddress();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment