Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Python not fully object-oriented? [closed]

Tags:

python

oop

I want to know why Python is not fully object-oriented. For example, it does not support private, public, protected access level modifiers.

What are the advantages and disadvantages of this? By these expressions, Python is suitable for what applications (Desktop, Scientific, Web or other)?

like image 408
Mahdi Amrollahi Avatar asked Jul 24 '10 13:07

Mahdi Amrollahi


People also ask

Is Python fully object oriented or not?

Well Is Python an object oriented programming language? Yes, it is. With the exception of control flow, everything in Python is an object.

Why does Python not support encapsulation?

Python doesn't support strong encapsulation, which is only one of many features associated with the term "object-oriented". The answer is simply philosophy. Guido doesn't like hiding things, and many in the Python community agree with him.

Why is Java not a 100% object oriented language?

Java is not fully object oriented because it supports primitive data type like it,byte,long etc.,which are not objects. Because in JAVA we use data types like int, float, double etc which are not object oriented, and of course is what opposite of OOP is. That is why JAVA is not 100% objected oriented.


1 Answers

Python doesn't support strong encapsulation, which is only one of many features associated with the term "object-oriented".

The answer is simply philosophy. Guido doesn't like hiding things, and many in the Python community agree with him.

like image 61
Marcelo Cantos Avatar answered Sep 23 '22 16:09

Marcelo Cantos