docs: update crtp

This commit is contained in:
Ilkka Seppälä
2024-05-25 08:52:39 +03:00
parent 9890579de4
commit 0c31312510
5 changed files with 39 additions and 63 deletions
@@ -47,6 +47,5 @@ public class App {
MmaHeavyweightFighter fighter3 = new MmaHeavyweightFighter("Dave", "Davidson", "The Bug Smasher", "Kickboxing");
MmaHeavyweightFighter fighter4 = new MmaHeavyweightFighter("Jack", "Jackson", "The Pragmatic", "Brazilian Jiu-Jitsu");
fighter3.fight(fighter4);
}
}
@@ -45,5 +45,4 @@ public class MmaFighter<T extends MmaFighter<T>> implements Fighter<T> {
public void fight(T opponent) {
LOGGER.info("{} is going to fight against {}", this, opponent);
}
}