Considering classes, Is there any difference between C/c#/c++, or other object Oriented programming languages? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Considering classes, Is there any difference between C/c#/c++, or other object Oriented programming languages?

18th Sep 2016, 4:52 PM
Marco Romanin
Marco Romanin - avatar
4 Respostas
+ 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
18th Sep 2016, 6:20 PM
Andriy Maletsky
Andriy Maletsky - avatar
+ 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)
27th Sep 2016, 3:52 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
thanks for the question it was also my difficulty
7th Jan 2017, 11:16 PM
ibrah banks
ibrah  banks - avatar
0
Thank you very much for your explanation i will check about it!
18th Sep 2016, 8:11 PM
Marco Romanin
Marco Romanin - avatar