na_yan
na_yan

Reputation: 56

How "Run time Polymorphism or Overriding" works?

I know what overriding is. As overriding is run-time polymorphism it works during run-time. But everything seems compile-time to me as the code works after the compiling phase. Can you help me to visualize the run-time polymorphism that how it decides during run-time?

Upvotes: 0

Views: 63

Answers (2)

TuanPM
TuanPM

Reputation: 703

Run-time polymorphism work base on vtable & vpointer concept. For more detail, please see this article

Upvotes: 2

test failed in 1.08s
test failed in 1.08s

Reputation: 611

For C++ "Run time" polymorphism, read this post

Upvotes: 1

Related Questions