Hands-On Penetration Testing with Python
上QQ阅读APP看书,第一时间看更新

Class relationships

One of the strongest advantages of object-oriented programming languages is code reuse. This reusability is powered by the relationship that exists between the classes. Object-oriented programming generally supports four types of relationships: inheritance, association, composition, and aggregation. All these relationships are based on is-a, has-a, and part-of relationships.