← Quiz: Inheritance and Virtual Functions: all 10 questions
Quiz: Inheritance and Virtual Functions · Question 10 of 10
Which is runtime polymorphism in C++?
Which is runtime polymorphism in C++?
- A.Function overloading
- B.Operator overloading
- C.Templates
- D.Calling a virtual function through a base-class pointer or reference
Answer & explanation
Correct answer: Calling a virtual function through a base-class pointer or reference
Overloading and templates are resolved at compile time; virtual calls are resolved at run time through the vtable.
Can you get the rest right without peeking?
Take the timed Quiz: Inheritance and Virtual Functions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →