answersLogoWhite

0

The correct terminology is member variables and member methods. They are both members of a class. The member variables are used to store an object's data, while the member methods are used to operate upon that data.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How would you access data members of a class in cases inside member function of another class?

Either make the data members public, or make the member function a friend of the class containing the data member.


What is Difference between local variable and data members or instance variable?

A data member belongs to an object of a class whereas local variable belongs to its current scope. A local variable is declared within the body of a function and can be used only from the point at which it is declared to the immediately following closing brace. A data member is declared in a class definition, but not in the body of any of the class member functions. Data members are accessible to all member function of the class.


Is it True or False that Variables declared in the particular member function are know as data members and can be used in all member functions of the class?

False. Variables declared within a particular member function are local to that function, and are automatically allocated and deallocated at entry and exit of the function.


Difference friend and public access modifier?

In C++, a friend function or friend class can grant access to its private data members to other classes. The public member allows any class to access that data.


Do declarations describe the data that will be used in the function?

Prototype of function describes return value as well as which data can be passed to the function.


What is the computer function in which processed data is displayed?

the computer function processed data is displayed is known as...


What is the function of the motherboard?

function of the processor is to process data


What is the function of a CD?

the function of a cd is to store data


What is the function of CD?

the function of a cd is to store data


What are public data members in a class?

Public data members are akin to structure data members (which are public by default). Since they are public, they are fully exposed outside of the class. Data validation becomes impossible. Even if you define an interface, there's no requirement to use it since the members are readily available. If the members must be validated, do not assign them public access.


What is the function of processor on motherboard?

function of the processor is to process data


What is the function where raw data is received is known as?

The input function is the computer function where raw data is received. This is done via an input device such as a keyboard and mouse.