What's the difference between object-oriented programming (e.g. java) and functional programming (e.g. python)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
one is a top-down approach and the other just opp. i.e bottom-up.In OOP you have objects which are instances of class.
In functional programming you dont have anything called a class or an object , you just have functions.
Hope this answered your question.
python is not only functional, it's multi-paradigm language and it's OOP as-well
and better just google it or look in wikipedia
Not the answer you are looking for? Search for more explanations.
If by functional programming you meant http://en.wikipedia.org/wiki/Functional_programming (and not procedural) then see this nice thread: http://stackoverflow.com/questions/2078978/functional-programming-vs-object-oriented-programming
Also see: http://www.haskell.org/haskellwiki/Why_Haskell_matters#Haskell_vs_OOP
object oriented makes reusable classes which can be assembled into other program.....functional programming is just one long program with maybe some comments to tell what a function does......object oriented programs are easier to wrap your head around, update, maintain, and generally cause you less stress as you add more and more features to each version of your program..
object oriented programming is used for end-user applications, whereas functional programming is more commonly used for making scientific applications and operating system functionality.
seanwalsh1984 I disagree with that all programming languages are going the way of Object Oriented even Lisp.........It has just taken 10 years of development of languages to get people on board with object oriented and write all the classes, methods, and datatypes and stuctures into a IDE/API/High Level Language. even the C language which is used to write most O/S now have widely used Object Oriented structures.