Let me explain both of them this way. Before Object Oriented Programming , there was sequential programming. That is, programmers on their computer jobs wrote programs to go from Line 1 through Line 5,000,000 step by step, many times repeating things and often skipping things, depending on what was happening. But still, the basic procedure was step by step by step. Let s say you re writing a program to tell the baseball team which is currently in the field what to do.
Pitcher throws ball close to front of batter.
If batter swings and misses, add 1 to strike count. Pitcher throws ball again. If batter hits ball to left field, left fielder runs toward estimated landing area. Left fielder keeps eye on ball and adjusts to be under ball as it comes down. Left fielder holds left hand with glove to where ball is estimated to land.