- Unreal Development Kit Game Programming with UnrealScript:Beginner's Guide
- Rachel Cordone
- 79字
- 2021-08-27 11:59:11
Inheritance
Another important principle of object-oriented programming is inheritance. Let's say our game had four different kinds of weapons: Pistols, machine guns, sniper rifles, and laser cannons. A lot of the functionality of those guns would be the same. They would each have ammo, damage, accuracy, and so on. Instead of having to duplicate all that code, they could all inherit the basic functionality of a weapon and change the properties they needed to to get their specific functionality.
推薦閱讀
- 新媒體跨界交互設計
- Augmented Reality with Kinect
- 顯卡維修知識精解
- Mastering Delphi Programming:A Complete Reference Guide
- 辦公通信設備維修
- 嵌入式技術基礎與實踐(第5版)
- Getting Started with Qt 5
- 單片機原理及應用系統設計
- INSTANT ForgedUI Starter
- 微服務分布式架構基礎與實戰:基于Spring Boot + Spring Cloud
- VCD、DVD原理與維修
- SiFive 經典RISC-V FE310微控制器原理與實踐
- OpenGL Game Development By Example
- Machine Learning Solutions
- 基于Proteus仿真的51單片機應用