Question 50Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the…

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.
  1. ANeither I nor II is correct
  2. BBoth I and II are correct
  3. COnly II is correct
  4. DOnly I is correct
Show answerHide answer

Correct answer: (A) Neither I nor II is correct

Explanation

The book's solution: encapsulation allows us to focus on what something does without considering the complexities of how it works, and abstraction allows us to consider complex ideas while ignoring irrelevant details that would confuse us. Hence, as per the book, neither statement is correct.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 50 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.