added bridge sample
This commit is contained in:
25
bridge/src/main/java/com/iluwatar/Mjollnir.java
Normal file
25
bridge/src/main/java/com/iluwatar/Mjollnir.java
Normal 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");
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user