Last active
December 19, 2017 10:12
-
-
Save nvcnvn/8f3899b37b2872324bf1cfcfa8aec13c 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
@Service | |
public class Car { | |
public void Move(Destination destination) {} | |
} |
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
@Service | |
public class Transporter { | |
@Autowired | |
private Car vehicle; | |
public void Deliver(Lady prettyOne, Destination to) { | |
makeOutWith(prettyOne); | |
hitAllTheBadGuysAt(to) | |
} | |
private void makeOutWith(Lady prettyOne) { | |
// ... | |
} | |
private void hitAllTheBadGuysAt(Destination to) { | |
vehical.Move(to) | |
// then full of violence | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment