Answer the following question Don't copy from Google.
![](https://hi-static.z-dn.net/files/d07/7cc094ac69ca1787831aa89b4831b521.jpg)
Answers
Answer:
There are certain similarities to the two paradigms - they both share the concept of binding data and code. This is a common attribute of modern languages.
Event driven programs generally have two important structures: an event loop for capturing and handling events from various sources, and closures to handle the dispatched events.
OO programs are organized in classes (and modules) and have no specific structure, although many are organized around the event-driven approach (such as the MVC framework).
These paradigms are popular because distributed computing (i.e. the Internet and the Web) are based on messaging, and event-driven solutions are a clean fit for it.
So, in practice these two approaches share many elements - not only data binding, but event loops and handlers (i.e. controllers). One would not necessarily find classes and objects in an event driven program, just as one would not necessarily find an event loop in an OO program. But in practice they can be found together, where OO is used to subdivide the handler code and event-driven solutions are used to capture and dispatch events.