- 博客(10)
- 资源 (7)
- 收藏
- 关注
原创 go方法的重载和方法的覆盖
方法重载:Go不支持,需用不同方法名或参数设计替代。方法覆盖:Go通过接口实现,允许不同类型为同一方法提供不同实现,实现多态。Go语言的这些特性体现了其“组合优于继承”的理念。如果你有具体场景或代码问题,可以提供更多细节,我可以进一步分析!
2025-09-23 14:07:48
261
原创 go继承的概念和实现
在Go语言中,没有传统面向对象编程中的"继承"概念,而是通过**组合(Composition)接口(Interface)**实现代码复用和多态性。
2025-09-23 14:06:21
156
原创 封装的概念和实现
通过这种封装机制,Go语言在保持简洁语法的同时,实现了面向对象的关键特性,有效提升了代码的安全性和可维护性。可自由修改内部实现而不影响调用方(如修改余额校验逻辑)封装是面向对象编程的核心概念之一,在Go语言中通过。在方法内部实现健壮性检查(如取款时的余额验证)防止外部直接修改对象内部状态(如示例中的。提供清晰的操作边界(存款/取款/查询)仅公开必要的接口,如示例中未公开。,以达到数据保护和模块化的目的。函数控制对象创建(如。
2025-09-23 14:03:28
282
原创 Mars Rescue Simulation
Mars Rescue SimulationPrivacy Policy of Mars Rescue SimulationPrivacy PolicyEffective date: June 30, 2020Mars Rescue Simulation(“us”, “we”, or “our”) operates the Mars Rescue Simulationmobile application (hereinafter referred to as the “Service”).This
2020-08-11 19:49:55
211
原创 New ThreeLittlePigs Run
New ThreeLittlePigs RunPrivacy Policy of New ThreeLittlePigs RunPrivacy PolicyEffective date: June 30, 2020New ThreeLittlePigs Run (“us”, “we”, or “our”) operates the New ThreeLittlePigs Run mobile application (hereinafter referred to as the “Service”)
2020-07-02 20:53:48
147
原创 Dinosaur Run
Dinosaur RunPrivacy Policy of Dinosaur RunPrivacy PolicyEffective date: June 29, 2020Dinosaur Run (“us”, “we”, or “our”) operates the Dinosaur Run mobile application (hereinafter referred to as the “Service”).This page informs you of our policies rega
2020-06-30 16:40:03
358
原创 WanderInColor
WanderInColorPrivacy Policy of Clouds&BombsPrivacy PolicyEffective date: November 29, 2019WanderInColor (“us”, “we”, or “our”) operates the WanderInColor mobile application (hereinafter referr...
2020-03-07 11:12:43
584
原创 Clouds&Bombs
ThreeLittlePigsPrivacy Policy of ThreeLittlePigsPrivacy PolicyEffective date: November 29, 2019ThreeLittlePigs (“us”, “we”, or “our”) operates the ThreeLittlePigs mobile application (hereinafter r...
2020-01-30 09:15:34
969
优化你的Unity手游.pdf
2019-12-26
IOS后台证书配置步骤 Xcode中的配置 导出ipa 免证书真机测试 demo
2019-06-18
Unity中的性能优化.pptx
2019-06-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅