edited by
1,405 views
1 votes
1 votes

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}$

$\textbf{Codes:}$

  1. $\text{(a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)}$
  2. $\text{(a)-(iii), (b)-(iv), (c)-(i), (d)-(ii)}$
  3. $\text{(a)-(iii), (b)-(i), (c)-(ii), (d)-(iv)}$
  4. $\text{(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)}$
edited by

1 Answer

2 votes
2 votes
ans will be B

a. Polymorphism---->Using similar operations to do similar things

b. Inheritance   -----> Create new classes from existing class

c.Encapsulation---->Hiding implementation details of methods from users of objects

d.Abstraction--->Picking both operator and attributes with operations appropriate to model an object
Answer:

Related questions

4.7k
views
1 answers
2 votes
go_editor asked Aug 10, 2016
4,698 views
Which of the following is/are correct with reference to Abstract class and interface?A class can inherit only one Abstract class but may inherit several interfacesAn ... is trueii is trueBoth i and ii are trueNeitehr i nor ii are true
3.1k
views
2 answers
2 votes
go_editor asked Aug 9, 2016
3,066 views
Which of the following is used to make an Abstract class?Making at least one member function as pure virtual functionMaking at least one member ... as Abstract class using virtual keywordDeclaring as Abstract class using static keyword
2.7k
views
2 answers
1 votes
go_editor asked Aug 8, 2016
2,679 views
Consider the following two statements:A publicly derived class is a subtype of its base classInheritance provides for code resuseWhich of the following statements is ... is correct and b is incorrectStatement a is incorrect and b is correct
3.9k
views
2 answers
3 votes
go_editor asked Aug 1, 2016
3,867 views
Which one of the following is correct?Java applets cannot be written in any programming languageAn applet is not a small programAn applet can be run on its ownApplets are embedded in another applications