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()); | |
// We 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