✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
基础
->
c++编程基础
C++ VS C#(12):函数的重载,类成员的static修饰,属性(二)
2014-11-24 13:03:40
·
作者:
·
浏览:
4
标签:
函数
重载
成员
static
修饰
属性
iInternal = value;
}
}
};
CBase myObj = new CBase();
int iVal = myObj.iVal; //调用iVal 变量的get方法
myObj.iVal = 5; //调用iVal 变量的set方法
class CBase
{
private int iInternal = 0;
public int iVal
{
get
{
//返回iInternal变量的数值
return iInternal;
}
set
&nb
首页
上一页
1
2
下一页
尾页
2
/2/2