← Quiz: Multiple Inheritance and the Diamond Problem: all 10 questions
Quiz: Multiple Inheritance and the Diamond Problem · Question 8 of 10
How do you call Scanner's version of status() on a Copier object c?
How do you call Scanner's version of status() on a Copier object c?
- A.c->Scanner.status()
- B.Scanner(c).status()
- C.c.Scanner::status()
- D.c.status(Scanner)
Answer & explanation
Correct answer: c.Scanner::status()
The scope resolution operator names the base class whose member you want.
Can you get the rest right without peeking?
Take the timed Quiz: Multiple Inheritance and the Diamond Problem quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →