Jibu alilotoa Kang ni sahihi kuhusu event driven programming. A simple explanation would be to contrast it with structured programming. A structured program is used to mean a program executing from the start line by line following a certain order. The execution happens sequentially.
On the other hand event driven programming execution does not flow from top to bottom. An event (sometimes called transaction or action) triggered by external or internal entity will change the flow of execution.
OOP is a concept of looking or writing a programming code to reflect object behaviours and actions. Your focus is on the data as opposed to structured programming where the focus is on the task. This means that when following OOP you will need to define the data to identify their types, attributes and behaviour. Take for example you need to write program to run a 'dog robot' and a 'cat robot'. Your first concern will be to define what dog is and what a cat is. In you definition you will realise that dog and cat share some common aspects(e.g they are both animal with four leg). However you will also find things that they dont share (e.g. a dog barks while a cat meow/yowl). Their similarity and distictions are very important when buiding the programming block for the cat and dog robots in OOP. This is where concepts such as objects, classes, polymorphism, inheritance, etc come into play.
If you were to design the same program in a structered programming you would define only the operations to get the robots walk, make noise, eat, etc. These are sometimes called functions.
Now you can clearly see that with structured programming the program is easy to design but rigid, difficult to change or reuse in the long run.
On the other hand OOP may seem complicated to design initially but easy to manage, flexible and reusable. Just think, this data if defined properly you may easily design cow robot, horse robot etc only by observing abstract and interface classes with the concept of inheritance.
I hope this will be helpful with your questions. If you need to understand this better you can email me:
goodymboya@gmail.com