Question: wth java Write the necessary codes for the given UML class diagrams. In main method, create 2 objects; one from KibishiFighter and one from HybridFighter
wth java 
Write the necessary codes for the given UML class diagrams. In main method, create 2 objects; one from KibishiFighter and one from HybridFighter classes, and create variable called isDead (boolean). While any Fighter is alive is Dead false), one should attack another, and its opponent should defense. Each attack method (attackTo, judo AttackTo etc.) should decrease (you decide amount) the health of opponent Fighters. Defense methods increase belonging fighter's health. Print out their health when one is dead. Note that methods in KibishiFighter and HybridFighter classes were not written. However, you can know them using parent-child (superclass-subclass) relationship given by UML. > > > Judo AttackBehaviours - Muay ThaiAttackBehaviour - Boxing AttackBehaviour - Fighter judo AttackTo(Fighter opponent) -Fighter muayThai AttackTo(Fighter opponent) -Fighter boxing AttackTo(Fighter opponent) 31 1 > Fighter String name sint health > > > 1 +Fighter (int health, String name) -Fighter attack To(Fighter opponent) void defense is IS HybridFighter KibishiFighter + HybridFighter (int health, String name) +KibishiFighter(int health, String name) OOPfinalQ2 + static Stringll main(String[] args)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
