Added comments for bridge example.

This commit is contained in:
Ilkka Seppala
2014-08-31 08:56:13 +03:00
parent e16099adf3
commit e71fba03a8
3 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,14 @@
package com.iluwatar;
/**
*
* In Bridge pattern both abstraction (MagicWeapon)
* and implementation (MagicWeaponImp) have their
* own class hierarchies. The interface of the
* implementations can be changed without affecting
* the clients.
*
*/
public class App
{
public static void main( String[] args )

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Abstraction interface.
*
*/
public abstract class MagicWeapon {
protected MagicWeaponImp imp;

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Implementation interface.
*
*/
public abstract class MagicWeaponImp {
public abstract void wieldImp();