According to the scope feature in interface, the Methods or Events can be inherited as Private, Override, or Published.
Let us assume that a chosen ancestor component has an event E. The inheritance process requires an interface to be created. The following options (values of EventScope) that are available for the ancestor's event E in the interface:
- Private - The event E does not appear in the descendant component events list and should be used for internal processing of the events from the ancestor component.
- Override - The event E appears in the descendant component events list and component author can write his/her own code before and/or after calling the user's event handling routine.
- Published - The event E appears in the descendant component events list and the event behaves like the native event of the descendant component. User's event handling routine is called directly.
Figure 1. Events inheritance