dimanche 27 mai 2018

observer pattern for a Youtube channel using this template

I'm learning design patterns.How can I make an observer pattern for a Youtube channel using this template: (note: observer class is all set, just this classes)

Subject.java public interface Subject {

}

Channel.java

public class Channel implements Subject {

}

Follower.java

public class Follower implements Observer { }

Aucun commentaire:

Enregistrer un commentaire