In this topic, you will learn about, What is event-driven programming? How is it different from the traditional programming approach?
Event-driven programming based on an event where an event is an external effect on any object to perform a specific task. Event-driven programming is a modern programming approach implement with Visual Basic, Java, Python, ASP, PSP.
This programming approach was introduced in the 1990s and it is completely based on OOP where we can specify objects. Due to an event-driven programming approach, we can design user-friendly windows based applications.
Some important events with event-driven programming:
- Click: Click provides an event for mouse single /double click.
- Focus: It provides get focus and lost focus event.
- Change: It provides a text box change event.
- Load: It uses a load or execution time event.
|It is also called the conventional programming approach.||It is also called a GUI based program.|
|In this approach of the statement is predefined.||In this approach execution of a statement depends on the event.|
|It is used with C, C++, FORM, COBOL language.||It is implemented with high-level 4th generation languages like VB and java.|
Comment below if you have queries related to the above article