Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2017 Jan – III | Question 37
  • Last Updated : 05 Apr, 2018

Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements ?
I. Abstraction allows us to focus on what something does without considering the complexities of how it works.
II. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
(A) Neither I nor II is correct.
(B) Both I and II are correct.
(C) Only II is correct.
(D) Only I is correct.


Answer: (A)

Explanation:
Encapsulation allows us to focus on what something does without considering the complexities of how it works.
Abstraction allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
So, option (A) is correct.


Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :