← Quiz: Composition vs Inheritance: all 10 questions
Quiz: Composition vs Inheritance · Question 7 of 10
"Delegation" means:
"Delegation" means:
- A.Copying the parent's code into the child
- B.An object passing a request to another object it holds, which does the actual work
- C.Calling
superfrom a constructor - 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 →