Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Actually, fields aren't called member variables in C++. They're called data members. Commented Jan 18, 2015 at 20:43
  • @FredOverflow I see both "data member" and "member variable" used in the standard. What is the difference? It seems like data member is the more general term. I see it used in reference to union members and static variables for example. Commented Jan 18, 2015 at 20:48
  • After looking through the standard a bit more, it looks like "member variable" is almost only used when contrasting with a non-member variable. Commented Jan 19, 2015 at 2:36
  • That makes sense. Commented Jan 19, 2015 at 9:22