December2015 cs Q30

0. Match the following with reference to object-oriented modeling.
List IList II
(a) Polymorphism(i) Picking both operator and attributes with operations appropriate to model an object
(b) Inheritance(ii) Hiding implementation details of methods from users of objects
(c) Encapsulation(iii) Using similar operations to do similar things
(d) Abstraction(iv) Create new classes from the existing class

Codes:

 (a)(b)(c)(d)
(1)(iv)(iii)(i)(ii)
(2)(iii)(iv)(i)(ii)
(3)(iii)(i)(ii)(iv)
(4)(iv)(iii)(ii)(i)

  • Option : B
  • Explanation :
  • Using similar operations to do similar things is Polymorphism
  • Create new classes from existing class is Inheritence.
  • Picking both operator and attributes with operations appropriate to model an object is encapsulation
  • Hiding implementation details of methods from users of objects is Abstraction
  • So, option (B) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *