提交 e71fba03 编写于 作者: I Ilkka Seppala

Added comments for bridge example.

上级 e16099ad
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 )
......
package com.iluwatar;
/**
*
* Abstraction interface.
*
*/
public abstract class MagicWeapon {
protected MagicWeaponImp imp;
......
package com.iluwatar;
/**
*
* Implementation interface.
*
*/
public abstract class MagicWeaponImp {
public abstract void wieldImp();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册