<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>runtime polymorphism - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Thu, 18 Aug 2022 08:05:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>runtime polymorphism - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What are the different types of polymorphism in C++ ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/what-are-the-different-types-of-polymorphism-in-cpp/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/what-are-the-different-types-of-polymorphism-in-cpp/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Thu, 18 Aug 2022 07:58:19 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ Polymorphism]]></category>
		<category><![CDATA[C++ Polymorphism with Example]]></category>
		<category><![CDATA[compile time polymorphism]]></category>
		<category><![CDATA[Encapsulation in C++]]></category>
		<category><![CDATA[function overloading in c++ polymorphism]]></category>
		<category><![CDATA[polymorphism in c++]]></category>
		<category><![CDATA[polymorphism with pointers in c++]]></category>
		<category><![CDATA[run time polymorphism in c++ program is mcq]]></category>
		<category><![CDATA[runtime polymorphism]]></category>
		<category><![CDATA[Types of Polymorphism and its Functions]]></category>
		<category><![CDATA[types of polymorphism in c++]]></category>
		<category><![CDATA[types of polymorphism in java]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4754</guid>

					<description><![CDATA[Polymorphism means multiple forms that means having more than one function with the same name but with different functionalities. In C++ program there are 2 types of polymorphism, they are: Compile-time polymorphism Run-time polymorphism Compile-time polymorphism At compile time which is implemented known as Compile-time polymorphism. It is otherwise known as static polymorphism. Method overloading [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">Polymorphism means multiple forms that means having more than one function with the same name but with different functionalities.</li>
<li style="text-align: justify;">In C++ program there are 2 types of polymorphism, they are:
<ul>
<li>Compile-time polymorphism</li>
<li>Run-time polymorphism</li>
</ul>
</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4761" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp.png" alt="" width="1218" height="851" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp.png 1218w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-300x210.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-1024x715.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-768x537.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-390x272.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-820x573.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/polymorphism-in-cpp-1180x824.png 1180w" sizes="(max-width: 1218px) 100vw, 1218px" /></p>
<h2 id="compile-time-polymorphism" style="text-align: justify;">Compile-time polymorphism</h2>
<ul style="text-align: justify;">
<li>At compile time which is implemented known as Compile-time polymorphism. It is otherwise known as static polymorphism.</li>
<li>Method overloading is also an example for compile-time polymorphism.</li>
<li>Method overloading which allows you to have more than one function with the same function name but with different functionality.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;"><strong>Sample Code</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">using namespace std;  <br/><br/>class Multiply  <br/><br/>{  <br/><br/>   public:  <br/><br/>   int mul(int a,int b)  <br/><br/>   {  <br/><br/>       return(a*b);  <br/><br/>   }  <br/><br/>   int mul(int a,int b,int c)  <br/><br/>   {  <br/><br/>       return(a*b*c);  <br/><br/>  }  <br/><br/> };  <br/><br/>int main()  <br/><br/>{  <br/><br/>    Multiply multi;  <br/><br/>    int res1,res2;  <br/><br/>    res1=multi.mul(2,3);  <br/><br/>    res2=multi.mul(2,3,4);  <br/><br/>    cout&lt;&lt;&quot;\n&quot;;  <br/><br/>    cout&lt;&lt;res1;  <br/><br/>    cout&lt;&lt;&quot;\n&quot;;  <br/><br/>    cout&lt;&lt;res2;  <br/><br/>    return 0;  <br/><br/>}  </code></pre> </div>
<h3 id="output" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" class="alignnone size-full wp-image-4755" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism.png" alt="" width="1416" height="196" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism.png 1416w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-300x42.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-1024x142.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-768x106.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-390x54.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-820x114.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/compile-time-polymorphism-1180x163.png 1180w" sizes="(max-width: 1416px) 100vw, 1416px" /></p>
<h2 id="run-time-polymorphism" style="text-align: justify;">Run-time polymorphism</h2>
<ul style="text-align: justify;">
<li>Run-time polymorphism is otherwise known as dynamic polymorphism.</li>
<li>Function overriding is an example of runtime polymorphism that means when the child class contains the method which is already present in the parent class.</li>
<li>In function overriding, parent and child class both contains the same function with the different definition.</li>
<li>The call to the function is determined at runtime is known as runtime polymorphism.</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;"><strong>Sample Code</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">using namespace std;  <br/><br/>class Base  <br/><br/>{ <br/><br/>    public:  <br/><br/>    virtual void show()  <br/><br/>    {  <br/><br/>        cout&lt;&lt;&quot;Wikitechy&quot;;  <br/><br/>     }  <br/><br/>};  <br/><br/>class Derived:public Base  <br/><br/>{  <br/><br/>    public:  <br/><br/>    void show()  <br/><br/>    {  <br/><br/>        cout&lt;&lt;&quot;Welcome to Wikitechy&quot;;  <br/><br/>    }  <br/><br/>};  <br/><br/>  <br/><br/>int main()  <br/><br/>{  <br/><br/>    Base* b;  <br/><br/>    Derived d;  <br/><br/>    b=&amp;d;  <br/><br/>    b-&gt;show();  <br/><br/>                return 0;  <br/><br/>}  </code></pre> </div>
<h3 id="output-2" style="text-align: justify;"><strong>Output</strong></h3>
<p><img decoding="async" class="alignnone size-full wp-image-4756" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism.png" alt="" width="956" height="219" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism.png 956w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism-300x69.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism-768x176.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism-390x89.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/run-time-polymorphism-820x188.png 820w" sizes="(max-width: 956px) 100vw, 956px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/what-are-the-different-types-of-polymorphism-in-cpp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The operator when overloaded in a class ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/the-operator-when-overloaded-in-a-class/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/the-operator-when-overloaded-in-a-class/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 23:03:08 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[compile time polymorphism in c++]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Harman International interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></category>
		<category><![CDATA[Mathworks India Private Limited interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[oops concepts]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Philips Software Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[polymorphism c++]]></category>
		<category><![CDATA[polymorphism c++ shapes]]></category>
		<category><![CDATA[polymorphism example]]></category>
		<category><![CDATA[polymorphism in c++]]></category>
		<category><![CDATA[polymorphism in c++ with example program]]></category>
		<category><![CDATA[polymorphism in oops]]></category>
		<category><![CDATA[polymorphism in oops with example in c++]]></category>
		<category><![CDATA[polymorphism programming]]></category>
		<category><![CDATA[polymorphism types]]></category>
		<category><![CDATA[polymorphism vs inheritance]]></category>
		<category><![CDATA[runtime polymorphism]]></category>
		<category><![CDATA[runtime polymorphism in c++]]></category>
		<category><![CDATA[Sapient Technical and HR Interview Questions]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></category>
		<category><![CDATA[Symphony Teleca interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tecnotree interview questions and answers]]></category>
		<category><![CDATA[types of polymorphism]]></category>
		<category><![CDATA[types of polymorphism in c++]]></category>
		<category><![CDATA[types of polymorphism in oops]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=392</guid>

					<description><![CDATA[Answer : B. Ad-hoc polymorphism]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h3 id="the-operator-when-overloaded-in-a-class" class="color-pink" style="text-align: justify;">The operator when overloaded in a class ?</h3>
<div class="row" style="text-align: justify;">
<div class="col-sm-6">
<p>A. Virtual polymorphism</p>
</div>
<div class="col-sm-6">
<p>B. Ad-hoc polymorphism</p>
</div>
<div class="col-sm-6">
<p>C. Transient polymorphism</p>
</div>
<div class="col-sm-6">
<p>D. Pseudo polymorphism</p>
</div>
</div>
<h3 id="answer-b-ad-hoc-polymorphism" style="text-align: justify;"><b>Answer : </b>B. Ad-hoc polymorphism</h3>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="explanation">Explanation</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Polymorphism means having many forms that in a single entity can takes more than one form.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/c++/polymorphism-in-cpp.jpg" alt="polymorphism in cpp" width="650" height="360" /></div>
<div class="hddn">The polymorphism classes are given below:</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>
<ul>
<li style="text-align: justify;">Subtype polymorphism is also known as <b>runtime polymorphism</b></li>
<li style="text-align: justify;">Parametric polymorphism is also known as <b>compile-time polymorphism</b></li>
<li style="text-align: justify;">Ad-hoc polymorphism is also known as <b>overloading</b></li>
<li style="text-align: justify;">Coercion is also known as (implicit or explicit) <b>casting</b></li>
</ul>
</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/the-operator-when-overloaded-in-a-class/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>C++ supports run time polymorphism with the help of virtual functions, which is called ______ binding</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/c-supports-run-time-polymorphism-with-the-help-of-virtual-functions-which-is-called-______-binding/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/c-supports-run-time-polymorphism-with-the-help-of-virtual-functions-which-is-called-______-binding/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 22:49:38 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[compile time polymorphism in c++]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Harman International interview questions and answers]]></category>
		<category><![CDATA[how runtime polymorphism is achieved in c++]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></category>
		<category><![CDATA[Mathworks India Private Limited interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[need of virtual function in c++]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Philips Software Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[polymorphism and virtual function in c++]]></category>
		<category><![CDATA[polymorphism example]]></category>
		<category><![CDATA[polymorphism in c++ with example programpolymorphism in c++]]></category>
		<category><![CDATA[polymorphism programming]]></category>
		<category><![CDATA[polymorphism programmingcompile time polymorphism in c++]]></category>
		<category><![CDATA[pure virtual function in c++]]></category>
		<category><![CDATA[runtime polymorphism]]></category>
		<category><![CDATA[runtime polymorphism in c++]]></category>
		<category><![CDATA[runtime polymorphism is achieved by virtual function in c++]]></category>
		<category><![CDATA[Sapient Technical and HR Interview Questions]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></category>
		<category><![CDATA[Symphony Teleca interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tecnotree interview questions and answers]]></category>
		<category><![CDATA[types of polymorphism in c++]]></category>
		<category><![CDATA[use of virtual function in c++]]></category>
		<category><![CDATA[Virtual Function in C++]]></category>
		<category><![CDATA[virtual function in c++ with example]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=384</guid>

					<description><![CDATA[Answer : A. Dynamic]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h3 id="c-supports-run-time-polymorphism-with-the-help-of-virtual-functions-which-is-called-______-binding" class="color-pink" style="text-align: justify;">C++ supports run time polymorphism with the help of virtual functions, which is called ______ binding.</h3>
<div class="row" style="text-align: justify;">
<div class="col-sm-6">
<p>A. Dynamic</p>
</div>
<div class="col-sm-6">
<p>B. Run time</p>
</div>
<div class="col-sm-6">
<p>C. Early binding</p>
</div>
<div class="col-sm-6">
<p>D. Static</p>
</div>
</div>
<h3 id="answer-a-dynamic" style="text-align: justify;"><b>Answer : </b>A. Dynamic</h3>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Dynamic binding (dynamic dispatch) means that a block of code executed with reference to a procedure call is determined at run time.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/c-supports-run-time-polymorphism-with-the-help-of-virtual-functions-which-is-called-______-binding/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
