- Hands-On Penetration Testing with Python
- Furqan Khan
- 70字
- 2021-07-02 14:13:58
Composition
Composition in OOP represents the part of relationship between classes. In this relationship, one class is a part of another class. Let's consider the following example, Composition.py, to understand the composition relationship between classes:

In the preceding example, the relation between the Ferrari car and the engine is of composition type. This is because the engine is part of the car, which is of the Ferrari type.
推薦閱讀
- Azure IoT Development Cookbook
- 數(shù)據(jù)結(jié)構(gòu)與算法JavaScript描述
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- Java深入解析:透析Java本質(zhì)的36個(gè)話題
- Java程序設(shè)計(jì)與實(shí)踐教程(第2版)
- JavaScript by Example
- Instant RubyMotion App Development
- Linux Device Drivers Development
- Learning Continuous Integration with TeamCity
- Hands-On Neural Network Programming with C#
- JavaScript+jQuery網(wǎng)頁特效設(shè)計(jì)任務(wù)驅(qū)動教程
- 微課學(xué)人工智能Python編程
- Mastering VMware Horizon 7(Second Edition)
- Learning Image Processing with OpenCV
- 3ds Max 2018從入門到精通