Link to home
Start Free TrialLog in
Avatar of klopter
klopter

asked on

What do you call a member which is not a function?

class A {
     getX() { return X_; }     // This is a member function
     int X_;                   // What is this ?
}


I would tend to refer to X_ as a member variable of class A, just as I would refer to getX() as a member function.  But, I don't see that term used much and I wonder if a better term exists.  

Thanks,
  Ken
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jonnin
jonnin

sometimes its called a data member in books etc...
Avatar of klopter

ASKER

Thanks

PS to jonin.  Your answer was helpful also.