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 : What is XLink What is XLink? Answer: It

    What is XLink? Answer: It is a part of the XLL specification which is concerned along with specifying links among documents.

  • Q : Static and dynamic modeling in

    Illustrate in brief the term static and dynamic modeling in programming?

  • Q : What is Abstract method Abstract method

    Abstract method: This is a method with the abstract reserved word in its header. The abstract method has no method body. Methods stated in an interface are for all time abstract. The body of an abstract method should be stated in a su

  • Q : Difference between collection and arrays

    Write the difference between collection and arrays?

  • Q : Define Short-circuit operator

    Short-circuit operator: It is an operator in which only as a lot of operands are computed as are required to determine the final outcome of the operation. The logical-and (&&) and logical-or (||) operators are most general illustration, though

  • Q : State Precedence rules Precedence rules

    Precedence rules: The rules which determine the order of computation of an expression comprising more than one operator. The operators of higher precedence are computed before those of lower precedence. For example, in the expression x+y*z, the multip

  • Q : Benefit from JavaIDL Why did Java

    Why did Java benefit from the development of JavaIDL?

  • Q : What is BLAST in program model checking

    What is BLAST in program model checking: The abbreviation is Berkeley Lazy Abstraction Software Verification Tool (BLAST) is a software model checker for C programs. The main goal of BLAST (BLAST website) is to be able to check that software satisfies

  • Q : Is a XML replacing HTML Is a XML

    Is a XML replacing HTML?

  • Q : Explain Functional programming

    Functional programming: It is a style of programming related with languages like Haskell. The functional programming languages are more strongly tied to a mathematical concept of `function' than imperative programming languages. This makes it simpler

©TutorsGlobe All rights reserved 2022-2023.