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.
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(){
}
Comments
You are perfect
Leave a comment