#Is OOP in Python improper?

1 messages · Page 1 of 1 (latest)

red spruce
#

Yes oop in Python is improper

#

It violates almost all the rules

#

The easiest example would be lack of access modifiers

#

It requires "self" which is like using "this" in java for example which is odd if it were object oriented truly and not a language pretending to be object oriented

#

Its also a strongly typed language that relies heavily on implicit typing... Which makes traditional polymorphism wack

#

Essentially:

encapsulation, you cant enforce.
abstraction, not required because encapsulation cant be enforced
Inheritance is just for reducing redudancy
Polymorphism basically isn't true polymorphism mostly because of implicit typing

urban parrot
#

I wouldnt say its improper, it’s just not very effective