Data members and member functions

Explain what are the data members and the member functions?

E

Expert

Verified

Classes utilizes the idea of abstraction and are described as the list of abstract attributes like weight, size, and cost and uses the functions to operate over these attributes.

The attributes are known as the data members since they hold the information. The functions that operate over these data are known as the methods or the member functions.

For Example: int a,b; // where a,b are data members

Void getdata ( ); // member function

   Related Questions in C/C++ Programming

©TutorsGlobe All rights reserved 2022-2023.