- 1、本文档共26页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
STM32 PMSM FOC SDK V3.2_讲座3
Our implementation of OOP 34
• It’s a C implementation, not really object programming
• Each class is constituted by three source file:
• An interface header file containing only what it necessary to the user to work with
that class
• A private header file containing private definitions (e.g. object variables, object data
structure type)
• A private .c file containing the real implementation of the methods
PUBLIC interface
XClass.h YClass.h
Z_XClass.h
Y_XClass.h
HIDDEN implementation
XClass.obj YClass.obj
XClass.c YClass.c
XPrivate.h
YPrivate.h Z_XClass.obj
Z_XClass.c Y_XClass.c Y_XClass.obj
Z_XPrivate.h Y_XPrivate.h
STM32 PMSM FOC SDK v3.2 12/06/2014
Our implementation of objects relations 35
Base class structure
Base class objects, is
Virtual methods
Variables a pointer pointing to Without
Parameters base classs structure derived class
Pointer to derived class
Base class structure
Derived class objects, is a
Virtual methods
Variables pointer always pointing to
Parameters its base classs structure With derived
Pointer to derived class Derived class structure class
您可能关注的文档
- RNA转录组分析与应用-李轩.pdf.pdf
- RNAV、RNP运行培训.pdf
- RMC 现代猪场管理.pdf
- Robot Framework Selenium自动化入门_虫师.pdf
- Robcad_教程.pdf
- RNS315(导航 )技术培训资料20141008.pdf
- Roche荧光定量PCR 相对定量建立方法.pdf
- RoseMirrorHA 4.4 for Windows快速安装说明v1.1-2013-04.pdf
- RoseMirrorHA for Windows快速安装文档.pdf
- Rosemount 2120中文.pdf
- 高校教师资格证之《高等教育心理学》通关测试卷附参考答案详解(培优b卷).docx
- 2025年传统工业制造行业工业自动化设备行业竞争策略研究报告.docx
- 高校教师资格证之《高等教育心理学》通关测试卷有答案详解.docx
- 生态环境保护与社会资本合作的创新模式.docx
- 高校教师资格证之《高等教育心理学》通关测试卷附参考答案详解(精练).docx
- 2025年乡村民俗文化旅游跨境电商平台跨文化营销与用户满意度提升.docx
- 高校教师资格证之《高等教育心理学》通关测试卷精编答案详解.docx
- 高校教师资格证之《高等教育心理学》通关测试卷附参考答案详解(a卷).docx
- 高校教师资格证之《高等教育心理学》通关测试卷附参考答案详解(b卷).docx
- 共享单车市场拓展可行性研究2025年报告.docx
文档评论(0)