I am translator in company and often we have problem to understand the difference between the terms "data member" and "field".
Could you please describe what they are and how they differ.
For example, "It can also denote the access to the data members of the object."
A data member in C++ is a non-function member of a class (
class
,struct
, orunion
).The term field is not a thing in C++. Languages like Java or Kotlin refer to members of classes as field, and it's the same concept. Field may also refer to a field in a form, e.g. a text input on a website. Similarly, there are member functions in C++ and methods in Java. Both terms refer to the same concept, but only member function appears in the C++ standard.
Developers coming from other languages are used to different terminology. In the end, it's multiple terms for the same thing.