Can You Compare Event Driven Programming With Object-oriented Programming (OOP)?


3 Answers

Anonymous Profile
Anonymous answered
Event driven programming
  In event driven programming, a program is executed when an event occur.
Event means a mouse click, form load,mouse move, key press etc, microsoft Visual Basic is an example of event driven programming.
Object oriented programming
  In object oriented programming emphasis is given to data. Classes are the main part of OOPs. Classes are the blueprints of object. Data is more secure in classes. Methods of particular classes can visible that data
Florio Potter Profile
Florio Potter answered

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 program. But in practice they can be found together, where OOP is used to subdivide the handler code and event-driven solutions are used to capture and dispatch events.

For more information get help at CodeAvail- Online Computer Science Assignment

Anonymous Profile
Anonymous answered
Object Oriented(ex Java) is the programming language where you can create your own classes, but with event-driven and Object Programming language you can only use the already defined classes.(ex VB)

Answer Question