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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sometimes its called a data member in books etc...
ASKER
Thanks
PS to jonin. Your answer was helpful also.
PS to jonin. Your answer was helpful also.