What is the difference between OOP and Functional Programming? - ProProfs Discuss
Advertisement

What is the difference between OOP and Functional Programming?

What is the difference between OOP and Functional Programming?

Change Image    Delete

Asked by G. GRAY, Last updated: Nov 14, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

G. Jabez

G. Jabez

G. Jabez
G. Jabez

Answered Mar 30, 2020

OOP and Functional Programming are two programming techniques that can be used to create programs from codes that can be easily understood and managed. OOP is the short form of Object-Oriented Programming, and it is a programming model that uses objects to create and implement programs. On the other hand, Functional programming is a programming technique or methodology that depends solely on the use of variables and functions to create and implement programs.

Functional programming operates using a declarative programming model, whereas the programming model used in Object-Oriented Programming is an imperative programming model. Object-Oriented Programming considers methods and objects as its key elements, whereas Functional programming sees functions and variables as its key elements.

Programming languages like Wolfram, F#, Clojure, Idris, Racket, Erlang, are usually classified under Functional programming, while programming languages like Python, VB.net, Curl, Java, Eiffel, C++, Objective C, are usually classified under Object-Oriented Programming.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.