← Quiz: Encapsulation and Abstraction: all 10 questions
Quiz: Encapsulation and Abstraction · Question 8 of 10
Which question does abstraction answer?
Which question does abstraction answer?
- A.Who can change this data?
- B.How many objects exist?
- C.What does the user of this class need to see?
- D.Which class is the parent?
Answer & explanation
Correct answer: What does the user of this class need to see?
Abstraction decides the public face; encapsulation guards the data behind it.
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 →