WHAT IS THE DIFFERENCE BETWEEN DELEGATES AND NOTIFICATIONS?

Mikki Halpin

Total Post:5

Points:25
Posted by  Mikki Halpin
 891  View(s)
Ratings:
Rate this:
  1. Mikki Halpin

    Post:5

    Points:25
    What is the difference between delegates and notifications?

    Delegates and Notifications


    A delegate uses protocols and creates a has-a relationship between the two classes. One of the other benefits of delegates is that you can return something back to the owning class.Notifications  are more geared towards point to multipoint communication.Delegates create relationships between classes. Notifications are used to send events to one or many classes.we have to use delegate to specified known object.notification for all object.

      Modified On Apr-16-2016 02:02:48 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!