
上QQ阅读APP看书,第一时间看更新
The basic OOP principles
A language cannot be considered an object-oriented language merely based on the fact that it supports classes and objects. The language will also need to support a set of different functionalities, such as encapsulation, polymorphism, composition, and inheritance, to be considered an object-oriented langauge. Python in this regard supports a lot of OOP-based concepts, but does it a bit differently due to its loosely typed nature. Let's take a look at how these features differ in Python.