🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Composition vs Inheritance: all 10 questions

Quiz: Composition vs Inheritance · Question 7 of 10

"Delegation" means:

"Delegation" means:

  1. A.Copying the parent's code into the child
  2. B.An object passing a request to another object it holds, which does the actual work
  3. C.Calling super from a constructor
  4. D.Declaring a method abstract
Answer & explanation

Correct answer: An object passing a request to another object it holds, which does the actual work

CountingSet delegates storage to its inner Set.

Can you get the rest right without peeking?

Take the timed Quiz: Composition vs Inheritance quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →