The Template Method works with inheritance. It would be possible to get the same functionality of the Template Method using the composition of objects in Java Language? What are some of the trade-offs? The Thread class in java.lang package would be an example of this use?
Aucun commentaire:
Enregistrer un commentaire