Can a function, other than the enclosing function of local class, access the class members?
(a) Yes, using object
(b) Yes, using direct call
(c) Yes, using pointer
(d) No, can’t access
I had been asked this question during an interview.
Asked question is from Local Class topic in division Class Members & Types of Object Oriented Programming