什么时候需要用到对象成员
											有没有通俗点的例子										
					
	
				
											class Man
{
private:
     float stature;//身高
     float weight;//体重
public:
     Man(){stature=1.6;weight=45.0;}
     Man(float s,float w){stature=s;weight=w;}
     void SetStature(float x){stature=x;}
     void SetWeight(float x){weight=x;}
     float GetStature(){return stature;}
     float GetWeight(){return weight;}
}
这是一个包含人的身高和体重两项数据的类。假如该类有多个对象,即有多个“人”,要比较他们之间的身高差异,或是按身高排序,那就需要访问对象的成员stature了,当然,是通过GetStature函数访问。
这应该够通俗了										
					
	
	
	
	      


 
											





 
	    

 
	


