← Quiz: Encapsulation and Abstraction: all 10 questions
Quiz: Encapsulation and Abstraction · Question 3 of 10
Which statement is correct?
Which statement is correct?
- A.Abstraction and encapsulation are the same
- B.Abstraction hides complexity; encapsulation protects data
- C.Encapsulation is only for Python
- D.Abstraction requires private fields
Answer & explanation
Correct answer: Abstraction hides complexity; encapsulation protects data
They are related but solve different problems.
Can you get the rest right without peeking?
Take the timed Quiz: Encapsulation and Abstraction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →