找回密码
 立即注册
成员声明部分The | C#编程 2022-10-03 117 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
类的定义一般地分为声明部分和实现部分。声明部分是用来声明该类中的成员,包括数据成员(或称“成员变量”)的声明和成员函数的声明。成员函数是用来对数据成员进行操作的,又称为“方法”。实现部分是用来对成员函数的定义。综合说来,声明部分将通知使用者“干什么”,而实现部分是通知使用者“如何干”。
第2章C++面向对象程序设计.PPT

(The definition of a class is generally divided into the declaration part and the implementation part. The declaration part is used to declare members of this class, including the declaration of data members (or "member variables") and member functions. Member functions are used to operate on data members, also known as "methods". The implementation part is used to define member functions. To sum up, the declaration part will inform the user of "what to do", while the implementation part will inform the user of "how to do".
Chapter 2 C  Object Oriented Programming. ppt)

[下载]08483062780.rar




上一篇:基本C++语言
下一篇:MFC基本应用程序的建立.