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

  1. A.Function overloading
  2. B.Operator overloading
  3. C.Templates
  4. 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 →