Question

Difference between employing functions and classes in object oriented programing?

Difference between employing functions and classes in object oriented programing?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.Definition

Functional programming(FP) emphasizes on evaluation of functions whereas oop based on concept of objects.

2.Data

FP uses immutable data whereas oop uses muttable data.

3.Support

parallel programming supported by FP whereas oop does not support parallel programming.

4.Model

FP does follow declarative programming model whereas oop does follow imperative programming model.

5.Execution

In FP, the statements can be executed in any order whereas in oop, the statements should be executed in particular order

6.Iteration

In FP, recursion is used for iterative data whereas in oops, loops are used for iterative data.

Add a comment
Know the answer?
Add Answer to:
Difference between employing functions and classes in object oriented programing?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT