added bridge sample

This commit is contained in:
Ilkka Seppala
2014-08-12 23:09:32 +03:00
parent 9ae662943c
commit e5fc439687
14 changed files with 276 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.iluwatar;
public class Mjollnir extends FlyingMagicWeaponImp {
@Override
public void wieldImp() {
System.out.println("wielding Mjollnir");
}
@Override
public void swingImp() {
System.out.println("swinging Mjollnir");
}
@Override
public void unwieldImp() {
System.out.println("unwielding Mjollnir");
}
@Override
public void flyImp() {
System.out.println("Mjollnir hits the enemy in the air and returns back to the owner's hand");
}
}