1.

Which feature allows open recursion, among the following?(a) Use of this pointer(b) Use of pointers(c) Use of pass by value(d) Use of parameterized constructorI got this question by my school principal while I was bunking the class.My question is based upon OOPs Basic Concepts in division OOPs Concept & Features of Object Oriented Programming

Answer»

The CORRECT CHOICE is (a) Use of this pointer

For explanation: Use of this pointer allows an object to call data and methods of itself whenever NEEDED. This helps US call the members of an object recursively, and differentiate the variables of different scopes.



Discussion

No Comment Found

Related InterviewSolutions