Last active
September 12, 2023 20:20
-
-
Save mcsee/edaade5842cdfa8ddd474c9904942e66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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