--%>

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 : Homework Assignment How much would it

    How much would it cost to do a basic program within the given requirements?

  • Q : Define Radio buttons Radio buttons : It

    Radio buttons: It is a group of selectable components in which merely one component might be selected. The selection of one of the group that causes the previously chosen component to be deselected.

  • Q : Explain the way to close an XHTML

    Explain the way to close an XHTML element.

  • Q : How Does Run time data handled into QTP

    How Does Run time data i.e. Parameterization is handled within QTP?

  • Q : Explain Right shift operator Right

    Right shift operator: Right shift operator (>>) is the bit manipulation operator. It shifts the bits in its left operand zero (0) or many places to the right, according to the value of its accurate operand. The most important bit from before the

  • Q : What is Pointer Arithmetic Pointer

    Pointer Arithmetic: C and C++ provide the ability to modify a pointer’s target address with arithmetic operations. This is used, for example, to index arrays. MyObject* P = ...

    Q : What is Random Access Memory Random

    Random Access Memory: Random access memory, or RAM, is the memory whose contents are simply accessible to the processing components of a computer. In specific, the time it takes to read and write to a particular portion of the memory does not based on

  • Q : What is Hash code Hash code : It is a

    Hash code: It is a value returned by a hash function. A hash code can be employed as an index into a random-access data structure, offering a proficient mapping between an object and its position. Employed by classes like HashMap.

  • Q : What are the uses of GPC and GPT What

    What are the uses of GPC and GPT?

  • Q : What is Character set encoding

    Character set encoding: The set of values allocated to characters in a character set. Associated characters are frequently grouped with consecutive values, like the digits and alphabetic characters.