Which of the following is NOT a principle of Object-Oriented Analysis & Design (OOAD)?
16 views
- Encapsulation
- Inheritance
- Polymorphism
- Recursion (Correct Answer)
Explanation
Explanation: Recursion is a programming technique that involves calling a function from within itself, and is not a principle of Object-Oriented Analysis & Design. The other three options – encapsulation, inheritance, and polymorphism – are all fundamental principles of OOAD. Encapsulation refers to the practice of hiding implementation details within an object and exposing only a public interface, while inheritance allows objects to inherit properties and behaviors from parent objects. Polymorphism enables objects to take on multiple forms, depending on the context in which they are used.