官术网_书友最值得收藏!

Summary

In this chapter, we learned how simple it is to create classes and assign properties and methods in Python. We also covered access control and different levels of scope (packages, modules, classes, and functions). In particular, we covered:

  • Class syntax
  • Attributes and methods
  • Initializers and constructors
  • Modules and packages
  • Relative and absolute imports
  • Access control and its limitations

In the next chapter, we'll learn how to share implementation using inheritance.

主站蜘蛛池模板: 板桥市| 天祝| 桃园县| 深水埗区| 唐河县| 长海县| 临高县| 化隆| 德州市| 仁怀市| 中卫市| 当涂县| 淅川县| 资溪县| 镇康县| 崇文区| 泊头市| 滨海县| 汝阳县| 香格里拉县| 安徽省| 竹溪县| 田东县| 徐闻县| 皋兰县| 社会| 广平县| 鄂托克旗| 专栏| 什邡市| 龙口市| 依安县| 巴中市| 全南县| 黔东| 营山县| 高阳县| 蕲春县| 贺兰县| 潢川县| 金阳县|