Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2. * -->This page is prepared by LordAmit
  3. */
  4. package observer.strategypattern;
  5.  
  6. /**
  7.  *
  8.  * @author LordAmit
  9.  */
  10. public class AggressiveFight implements IMode{
  11.  
  12.     public void fight(Soldier sol) {
  13.         System.out.println("hi, this is "+sol.getName()+" fighting in aggressive mode");
  14.     }
  15.  
  16. }