UGC NET CS 2017Programming Languages and Computer Graphics › Object Oriented ProgrammingVerified
UGC NET CS 2017 PYQ: Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to…
Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements?
- Abstraction allows us to focus on what something does without considering the complexities of how it works.
- Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
- ANeither I nor II is correct
- BBoth I and II are correct
- COnly II is correct
- DOnly I is correctCorrect answer
Answer
(D) Only I is correct
Approach
Distinguish abstraction from encapsulation.
Reviewed by UGC IQ Editorial Team.