- Learning Object-Oriented Programming
- Gastón C. Hillar
- 109字
- 2021-07-16 13:46:04
Chapter 2. Classes and Instances
In this chapter, we will start generating blueprints to create objects in each of the three programming languages: Python, JavaScript, and C#. We will:
- Understand the differences between classes, prototypes, and instances in object-oriented programming
- Learn an object's lifecycle and how object constructors and destructors work
- Declare classes in Python and C# and use workarounds to have a similar feature in JavaScript
- Customize the process that takes place when you create instances in Python, C#, and JavaScript
- Customize the process that takes place when you destroy instances in Python, C#, and JavaScript
- Create different types of objects in Python, C#, and JavaScript
推薦閱讀
- PHP動態網站程序設計
- AWS Serverless架構:使用AWS從傳統部署方式向Serverless架構遷移
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- AngularJS Web Application Development Blueprints
- 21天學通C++(第6版)
- 深入RabbitMQ
- 飛槳PaddlePaddle深度學習實戰
- Node.js Design Patterns
- jQuery炫酷應用實例集錦
- Visual Basic程序設計教程
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- 時空數據建模及其應用
- PHP編程基礎與實踐教程
- 并行編程方法與優化實踐
- Python物理建模初學者指南(第2版)