Observer pattern--next step i how do?

http://hiphotos.baidu.com/ghyghost/abpic/item/09689e5092a72843853524bc.jpg


update code :

package test_package;

public interface Isubject {

void subjectMethod();

}

package test_package;

public interface Iobserver {
}


package test_package;

public class Subject1 implements Isubject {

public void subjectMethod() {
	throw new UnsupportedOperationException();
}

}


but i hope Class Subject1 become:

package test_package;

public class Subject1 implements Isubject {

Iobserver Iobserver_ref;

public void subjectMethod() {
	throw new UnsupportedOperationException();
}

}

how do it??

how use the SDE implement me function??

3Q

i english poor

Hi Ghyghost,

Thanks for your post. I’m sorry that the image you attached is not viewable, could you please attach it again?

Best regards,
Lilian Wong