Answer to Question #221125 in C++ for Charles

Question #221125
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-28T07:46:58-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 OOP is in 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

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS