How oop is different from the procedure oriented programming?

Answer:
OOP, or Object Oriented Programming, is different from procedural programming, mainly because of the focus of the language. OOP focuses on objects, or collections of data and actions all bundles together into a nice little package. Procedural programming focuses on actions. For example, consider the following programming problem:

A farmer needs to calculate the number of bags of feed that his many types of animals, such as sheep, cows, and goats, will need. Design a friendly GUI (Graphical User Interface) and program that will accomplish this for him. Use the current prices, in USD, from Wikipedia of one bag of feed for the designated animal.

A Java programmer would start out by defining several classes, or "blueprints" for objects, such as Cow and Chicken for the animals, Button and Window for the onscreen GUI, and WikiReader and Parser for the act of getting the prices from Wikipedia. Then, he would link them all together and generally start coding.

A FORTRAN programmer would start by making procedures: getPriceFromWikipedia(), calculatePriceForAnimal, or sumUpPrices(). He would put references to each of the methods, for example sumUpPrices would invoke calculatePriceForAnimal for each of the animals.

So there you have it.
First answer by APerson241. Last edit by APerson241. Contributor trust: 31 [recommend contributor recommended]. Question popularity: 1 [recommend question].