🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Who can change this data?
  2. B.How many objects exist?
  3. C.What does the user of this class need to see?
  4. 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 →