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.
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.