Answer to Question #220190 in C++ for cobet

Question #220190

Explain at least not less than five differences between data-oriented programming and object-oriented programming. In your explanations, include concepts of data-oriented design, object-oriented design, and use at least five examples which should include source codes to support your arguments.


1
Expert's answer
2021-07-24T07:04:21-0400


Data oriented programming (DOP) deals with data while object-oriented programming (OOP) deals with objects.

DOP data are not following a specific set of rules while OOP in the objects follows a specific rule.

There is a memory caching in DOP while there is no memory caching in OOP.

The DOP is more efficient than OOP.

There is no inheritance in DOP while there is inheritance in OOP.

There is no polymorphism in DOP while there is polymorphism is present in OOP

Good examples of DOP languages are Lisp, R, and Prolog while an example of OOP is Java, CPP, Ruby, Python, Perl .

Source code in OOP can be:

class Student{
private:
string name;
public:
Student(){
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Charles
28.07.21, 12:27

You are perfect

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS