If a declaration of a member in inner class has the same name as that in the outer class, then ________________ enclosing scope.
(a) Outer declaration shadows inner declaration in
(b) Inner declaration shadows outer declaration in
(c) Declaration gives compile time error
(d) Declaration gives runtime error
I have been asked this question in class test.
I'd like to ask this question from Nested Class topic in portion Class Members & Types of Object Oriented Programming