Member access specifier is a C++ Operator that is used to access class member functions via the objects belonging to the same class.View more random threads:
- this pointer in c++
- what is difference between friend class and friend alternate
- keyword of c++ May 2011
- please tell me a proper defination of a function?
- code c++
- define abstraction in c++ 2011
- what is bool why we use it with the function what is it...
- Function also provides encapsulation, what it means with an...
- cs201 intro to computer
- static member function can be declared explicitly?
For example we have a class, Student......... now we create one of its object like Student astudent;
Now you know very well that "astudent" is an object of class "Student" and let suppose there is a member function like "roll no()" of this class, now if "astudent" wants to access "roll no()" , then, the syntax should be like this.........
astudent. roll no();
You see "." is the member access specifier which act as an operator used to provide access of member function to the object.
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)