adplus-dvertising
frame-decoration

Question

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

Answer: (d).No, can’t access

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Can a function, other than the enclosing function of local class, access the class members?

Similar Questions

Discover Related MCQs

Q. Which among the following is main advantage of using local classes?

Q. Which among the following best describes a nested class?

Q. Which feature of OOP reduces the use of nested classes?

Q. How many categories are nested classes divided into?

Q. Non-static nested classes have access to _____________ from enclosing class.

Q. Static nested classes doesn’t have access to _________________ from enclosing class.

Q. The nested class can be declared ___________________

Q. Use of nested class ____________ encapsulation.

Q. Which among the following is correct advantage/disadvantage of nested classes?

Q. How to access static nested classes?

Q. A nested class can have its own static members.

Q. How to create object of the inner class?

Q. Instance of inner class can exist only _______________ enclosing class.

Q. If a declaration of a member in inner class has the same name as that in the outer class, then ________________ enclosing scope.

Q. A static nested class is _____________ class in behavior that is nested in another _________ class.

Q. Which among the following best defines static variables members?

Q. Which keyword should be used to declare static variables?

Q. Any changes made to static data member from one member function _____________

Q. Which is the correct syntax for declaring static data member?

Q. The static data member ______________________