Benefits of the event-delegation model

Write down some of the benefits of the event-delegation model over event-inheritance model?

E

Expert

Verified

Event-delegation model consist of two benefits over event-inheritance model.

a) Event delegation model allows event handling by objects other than ones which produce the events. This permits a clean separation between the component's design and its use.

b) This performs much better in applications where numerous events are produced. This performance enhancement is due to the event-delegation model doesn’t have to be repeatedly process unhandled events as is the case of event-inheritance.

   Related Questions in Programming Languages

  • Q : New features in Microsoft AJAX library

    List the new features that are included in Microsoft AJAX library?

  • Q : Explain the difference between the

    Explain the difference between the Interpreter and Compiler?

  • Q : Program to Calculate Estimate

    Collaboration Policy Collaboration between students on programming assignments is NOT allowed under any circumstances - you may not even discuss your work with other

  • Q : Define the term New operator Define the

    Define the term New operator: The operator employed to generate instances {instance} of a class.

  • Q : Define Class Class : It is a

    Class: It is a programming language concept which permits data and techniques to be grouped altogether. The class concept is basic to the notion of an object-oriented programming language. Methods of a class define the set of permitte

  • Q : Explai phases of software development

    Define the difference between phases of software development or software life cycle?

  • Q : Which is the tool having demand within

    Which is the excellent tool one should learn, which is the tool having demand within the market?

  • Q : Write a recursive implementation of

    Assignment 5 Selecting Array Elements Implement the following C++ code in assembly language, using the block-structured .IF and .WHILE directives. Assume that all variables are 32-bit signed integers: int array[] = {10,60,20,33,72,89,45,65,72,18}; int sample = 50; intArraySize = s

  • Q : Automaton distributed in the class

    Write a code in a c++/java  for the automaton distributed in the class which accepts keywords(cat,bat,cab). Create an input file with these words may be two or three copies of these words scattered in a paragraph and show that your program does accept these words and gives an output to that

©TutorsGlobe All rights reserved 2022-2023.