0
Considering classes, Is there any difference between C/c#/c++, or other object Oriented programming languages?
4 ответов
+ 3
Yes, there is much difference, and it is quite difficult (especially for me) to explain it in few words.
There are many similarities, too, but Python's OOP is more similar to OOP in JavaScript and other very dynamic languages.
The one of most noticeable differences is late binding: all methods in Python are always virtual in C++ terms. Other is memory allocation system - in Python you can append attributes and even methods to objects in runtime
+ 3
Two links
https://en.m.wikipedia.org/wiki/Comparison_of_programming_languages_(object-oriented_programming)
https://en.m.wikipedia.org/wiki/Object-oriented_programming
It's a lot of reading, probably more than you need, but it supports Andriy Maletsky's comment and (don't get me wrong, OOP can be powerful) it leads to this quote (in link 2):
"The problem with object-oriented languages is they've got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle." -- Joe Armstrong (Erlang)
+ 1
thanks for the question it was also my difficulty
0
Thank you very much for your explanation i will check about it!