私有成员

热度:346

简介

c++语言中class类中的private:私有数据和函数。

格式:

class 类名{

private:私有数据和函数

public:公有数据和函数

protected:保护数据和函数

};

原始名称 私有成员
精选上位词 术语
相关实体