Match the following with reference to object oriented modelling :…
2015
Match the following with reference to object oriented modelling :
\(\begin{array}{clcl} & \textbf{List-I} && \textbf{List-II} \\ \text{(a)} & \text{Polymorphism} & \text{(i)} & \text{Picking both operator and attributes with} \\ &&& \text{operations appropriate to model an object} \\ \text{(b)} & \text{Inheritance} &\text{(ii)} & \text{Hiding implementation details of} \\ &&& \text{methods from users of objects} \\ \text{(c)} & \text{Encapsulation} & \text{(iii)}& \text{Using similar operations} \\ &&& \text{to do similar things} \\ \text{(d)} & \text{Abstraction} & \text{(iv) }& \text{Create new classes from} \\ &&& \text{existing class} \\ \end{array}\)
Codes :
Answer: B. (a)-(iii), (b)-(iv), (c)-(i), (d)-(ii) — Correct matching and explanation: Polymorphism → Using similar operations to do similar things. Inheritance → Create new classes from existing class.…
- A.
(a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)
- B.
(a)-(iii), (b)-(iv), (c)-(i), (d)-(ii)
- C.
(a)-(iii), (b)-(i), (c)-(ii), (d)-(iv)
- D.
(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)
Attempted by 34 students.
Show answer & explanation
Correct answer: B
Correct matching and explanation:
Polymorphism → Using similar operations to do similar things.
Inheritance → Create new classes from existing class.
Encapsulation → Hiding implementation details of methods from users of objects (information hiding and bundling data with methods).
Abstraction → Picking relevant attributes and operations appropriate to model an object (focusing on essential features).
Note: None of the provided option codes exactly matches this correct mapping. The correct code would list these four pairings in the same order: Polymorphism → using similar operations; Inheritance → create new classes; Encapsulation → hiding implementation; Abstraction → selecting relevant attributes/operations.