Is there any relevant difference between "Object-oriented programming" and "Class-oriented programming"?

2

I was reading a post that the member @bigown indicated, and I came across an answer from another member that gave me more questions and decided to search.

In the response was the following phrase: "Object-oriented programming" and "class-oriented programming", however, I did some research and I did not find relevant content to clarify this question.

Link to the answer above where you extract the text: What is the difference between a class and an object?

Search Link: link

In Wikibooks, the explanation of what is "Object-oriented programming" and what is "Class-oriented programming" is unclear.

Every time I look for more information through search, I do not know which one would be most relevant to my case.

Does anyone have a better explanation to contribute?

    
asked by anonymous 09.05.2017 / 19:55

1 answer

3

Class-oriented programming is a subtype of object-oriented programming.

Languages that allow you to use more popular object-oriented programming, such as Java and C #, force you to define your code in classes. This encourages compartmentalization of the code and has several benefits that have already been discussed extensively in other questions.

However, the forced use of classes also brings limitations, which other object-oriented languages do not have. An example is Javascript. This language is object-oriented, and oriented to prototypes - which are different from classes. The class concept does not even exist in Javascript. Behaviors are inherited between objects, not between types. Like the use of classes, the use of prototypes has its advantages and limitations. But I believe comparative analysis is a topic for another question.

More details on prototypes are available at What is Javascript Prototype ?

    
09.05.2017 / 20:11