Cognizant interview question

Explain polymorphism &OOPs concepts What is recursion?

Interview Answer

Anonymous

19 June 2025

Polymorphism means taking multiple forms. The object in the program can act in different ways depending on the message or the event Explanation of encapsulation and abstraction; Writing some easy programs such as “a program to find whether a number is odd The process when a function calls itself directly or indirectly is called Recursion and the corresponding function is called a Recursive ...