Question: What is the relationship between abstraction and encapsulation?
- Abstraction is about making relevant information visible, while encapsulation enables a programmer to implement the desired level of abstraction.
- Abstraction and encapsulation are essentially the same.
- Abstraction and encapsulation are unrelated.
- Encapsulation is about making relevant information visible, while abstraction enables a programmer to implement the desired level of encapsulation.
Answer: The correct answer of the above question is Option A:Abstraction is about making relevant information visible, while encapsulation enables a programmer to implement the desired level of abstraction.