File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
bridge/src/main/java/com/iluwatar Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * In Bridge pattern both abstraction (MagicWeapon)
6+ * and implementation (MagicWeaponImp) have their
7+ * own class hierarchies. The interface of the
8+ * implementations can be changed without affecting
9+ * the clients.
10+ *
11+ */
312public class App
413{
514 public static void main ( String [] args )
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Abstraction interface.
6+ *
7+ */
38public abstract class MagicWeapon {
49
510 protected MagicWeaponImp imp ;
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * Implementation interface.
6+ *
7+ */
38public abstract class MagicWeaponImp {
49
510 public abstract void wieldImp ();
You can’t perform that action at this time.
0 commit comments