WHAT IS THE DIFFERENCE BETWEEN DELEGATES AND NOTIFICATIONS?

Mikki Halpin

Total Post:0

Points:0
Posted by  Mikki Halpin
 1120  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 Mar-28-2018 05:14:37 AM

Answer

NEWSLETTER

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