OA. free
Free
Ola Core Computer Science Core Computer Science Medium

A software designer wants to create a class representing an employee.

Ola technical mcq question, verified with a worked answer. Free to practise - no sign-up.

A software designer wants to create a class representing an employee. The designer wants to ensure that personal information such as name, email, and address can only be accessed and updated through setter and getter methods provided by the class.

Which OOP principle should the designer apply?

Choose one option.
Show answer & explanation
Answer: A. Polymorphism

Accurate technical and quantitative evaluation based on foundational principles.

Step-by-step Derivation:
Step 1: Formulate problem conditions.
Step 2: Apply logical deduction.
Step 3: Conclude correct option.