All Questions
8 questions
2
votes
1
answer
1k
views
In Python when is absolutely preferable to use a class instead of a module?
Python is the language I use most in this period.
My background in Java
Before start learning Python I have programmed in Java language. In Java all code is written inside the methods of a class and ...
4
votes
2
answers
1k
views
Why do we have mutator methods?
I'm switching from Java to Python and am having trouble understanding the @Property decorator. I realized in OOP languages (such as Java) I don't fully understand the point of mutator methods in the ...
6
votes
4
answers
1k
views
Legitimate cases of having .equals() behaving inconsistently with .compareTo()?
Java documentation says it's "strongly recommended" to have them behaving consistently.
But are there legitimate cases of java/c#/python/etc Object.equals() method behaving inconsistently with the ...
10
votes
9
answers
6k
views
Is there any difference learning OOP on different programming languages? [closed]
I want to learn OOP. I know Python and I know very little things about OOP.
But when I search for "learn OOP" in forums I saw a guy saying that "Python is so new that's why you can't learn OOP on ...
-1
votes
1
answer
1k
views
Using dot to Access Object Attribute and Proper abstraction
I have been programming in python and Java for quite a number of years and one thing I find myself doing is using the setters and getters from Java in Python but a number of blogs seem to think using ...
2
votes
1
answer
6k
views
What are C's advantages over OOP languages, other than performance? [duplicate]
Possible Duplicate:
When to use C over C++, and C++ over C?
C still has its own importance in the programming world! And one reason for it is its performance. But, I have some questions.
Is there ...
19
votes
10
answers
11k
views
Why are inheritance and polymorphism so widely used?
The more I learn about different programming paradigms, such as functional programming, the more I begin to question the wisdom of OOP concepts like inheritance and polymorphism. I first learned ...
20
votes
3
answers
19k
views
Differences between "Java OOP" and "Pythonic OOP"? [closed]
I started with ActionScript 2.0 and then went on with Java. I have learned, or at least used, a bunch of languages since then, including Python (probably my favorite).
I'm afraid that my style of ...