C++面向对象程序设计
类的定义一般地分为声明部分和实现部分。声明部分是用来声明该类中的成员,包括数据成员(或称“成员变量”)的声明和成员函数的声明。成员函数是用来对数据成员进行操作的,又称为“方法”。实现部分是用来对成员函数的定义。综合说来,声明部分将通知使用者“干什么”,而实现部分是通知使用者“如何干”。第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 CObject Oriented Programming. ppt)
页:
[1]