0% found this document useful (0 votes)
21 views7 pages

C++ Runtime Polymorphism Guide

Pdf on questions on polymorphism

Uploaded by

sood.vartika9905
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views7 pages

C++ Runtime Polymorphism Guide

Pdf on questions on polymorphism

Uploaded by

sood.vartika9905
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Runtime Polymorphism

Runtime polymorphism is being able to assign different meanings to same


function at runtime.
It is also called Dynamic binding.

It is not default in C++ so it is achieved by –


1. Inheritance
2. Base class pointer
3. Virtual functions

1) Inheritance
Output –
2) Base class pointer
Output –
3) Virtual functions
Output –

You might also like