Define a) Data meber (b) Member
function
Answers
Answered by
2
Answer:
The variables which are declared in any class by using any fundamental data types (like int, char, float etc) or derived data type (like class, structure, pointer etc.) are known as Data Members. And the functions which are declared either in private section of public section are known as Member functions....
Answered by
5
Answer:
a) Data members include members that are declared with any of the fundamental types, as well as other types, including pointer, reference, array types, bit fields, and user-defined types. For example, a member can be declared that is a pointer to an incomplete class type.
b) Member functions are operators and functions that are declared as members of a class. Member functions do not include operators and functions declared with the friend specifier. These are called friends of a class. You can declare a member function as static ; this is called a static member function.
Similar questions
Chemistry,
2 months ago
Math,
2 months ago
English,
5 months ago
Computer Science,
5 months ago
Social Sciences,
11 months ago
Biology,
11 months ago