- 6
- 0
- 约1.74万字
- 约 58页
- 2018-02-27 发布于湖北
- 举报
C for Engineers and Scientists Third Edition文档
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Chapter Summary Assignment operator can be declared for class as: void operator=(className); Copy constructor initializes one object by using another object of the same class className(const className); Each class has associated class scope defined by brace pair {} containing class definition Each class object has separate memory for members except those declared static Static function members apply to class as whole rather than to separate objects C++ for Engineers and Scientists, Third Edition * Chapter Summary (continued) Non-member function can access class’s private data members if granted friend status User-defined operators can be constructed for classes by using operator functions User-defined operators can be called as a conventional function with arguments or as an operator function Operator functions can also be written as friend functions C++ for Engineers and Scientists, Third Edition * Chapter Summary (continued) Four categories of data type conversions Built-in types to built-in types Built-in types to class types Class types to built-in types Class types to class types Type conversion constructor: First argument is not a member of its class; any remaining arguments have default values Conversion operator function: Member function having the name of a class No explicit arguments or return type C++ for Engineers and Scientists, Third Edition * Chapter Summary (continued) Inheritance: Capability of deriving one class from another class Initial class used as basis for derived class: base, parent, or superclass Derived class: child or subclass Base class functions can be overridden by derived class functions with same name Polymorphism: Capability of having the same function name invoke different responses based on the object making the call C++ for Engineers and Scientists, Third Edition * Chapter Summary (continued) Override functions and virtual functions can be used to implement polymo
您可能关注的文档
- Appendix4风险(新业务)投资管理办法文档.ppt
- ARM监控系统投标书文档.ppt
- arb治疗糖尿病肾病的循证医学证据 ppt课件文档.ppt
- Auto CAD机械制图基础教程课件第02章文档.ppt
- an__en_in_un_vn课件新的1文档.ppt
- Auto CAD机械制图基础教程课件第01章文档.ppt
- AUTOCAD2007教程PPT版 第1章 AutoCAD 2007入门基础文档.ppt
- APC服务器机房解决方案文档.ppt
- ATM网络拥塞控制系统的建模与控制.ppt文档.ppt
- AYE本科毕业设计-基于TD-SCDMA的视频传输与监控系统-服务器视频管 理系统文档.ppt
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)