InterviewSolution
Saved Bookmarks
| 1. |
Which among the following is correct to call a private member from outside the class?(a) object.memberfunction( parameters );(b) object->memberfunction( parameters );(c) object->memberfunction( parameteres); or object.memberfunction( parameters );(d) Not possibleI have been asked this question by my school teacher while I was bunking the class.Question is from Private Access Specifier in chapter Access Specifiers of Object Oriented Programming |
|
Answer» The correct choice is (d) Not possible |
|