reset password
Author Message
ywang157
Posts: 1
Posted 12:58 Sep 19, 2019 |

in the homework description about the creating Subscriber class:

  • Add methods subscribe()  and unsubscribe() (these are not in the interface per se, but they are useful) to subscribe and unsubscribe from a publisher
    • These methods delegate these tasks to an instance of Subject that Subscriber keeps

                                              Does the delegate here means to use interface delegation? 

msargent
Posts: 519
Posted 18:28 Sep 19, 2019 |

That's a good question. No, it just uses the Subject member variable to do the registering and unregistering.