<?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>implement three class | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/implement-three-class/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:11:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C++ program to implement three classes using multiple inheritance</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-three-classes-using-multiple-inheritance/</link>
					<comments>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-three-classes-using-multiple-inheritance/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 13 Mar 2010 15:11:45 +0000</pubDate>
				<category><![CDATA[Advanced programs]]></category>
		<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[C Programs]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[implement three class]]></category>
		<category><![CDATA[multiple inheritance]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1060</guid>

					<description><![CDATA[<p>MULTIPLE INHERITANCES AIM: Write a program to illustrating how all the three classes are implemented in multiple inheritance mode ALGORITHM • Start the process • Invoke the class M • Invoke the another class N • Invoke one more class,ie class P,which is inherited by both M and N • Create an object for class</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-three-classes-using-multiple-inheritance/">C++ program to implement three classes using multiple inheritance</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>MULTIPLE INHERITANCES</strong></p>
<p><strong>AIM:</strong><br />
Write a program to illustrating how all the three classes are implemented in multiple inheritance mode</p>
<p><strong>ALGORITHM</strong><br />
•	Start the process<br />
•	Invoke the class M<br />
•	Invoke the another class N<br />
•	Invoke one more class,ie class P,which is inherited by both M and N<br />
•	Create an object for class p,ie P p<br />
•	Call p.get_m(),assign the value in to ‘m’<br />
•	Call p.get_n(),assign the value in to ‘n’<br />
•	Call display(), for dispay the result<br />
•	Stop the result </p>
<p><strong>PROGRAM:</strong></p>
<pre lang="cpp">
	#include<iosteram.h>
	#include<conio.h>
	
	Class M
        {
		Protected:
		Int m;
		Public :
		Void get_M();
	};
	Class N
        {		
		Protected:
		Int n;
		Public:
		Void get_N();
	};
	Class p: public M, public N 		
	{
		Public:
		Void disply(void);
	};
	Void M ::get_m(int x)
	{
		m=x;
	}
	Void N::get_n(int y)
	{
		n=y;
	}
	Void P:: disply(void)
	{
	Cout<<”m=”<<m<<endl;
	Cout<<”n=”<<n<<endl;
	Cout<<”m*n=”<<m*n<<endl;
	}
	int main()
	{
		P p;
		p.get_m(10);
		p.get_n(20);
		p.display();
		return 0;
	}
</pre>
<p><strong>OUTPUT</strong></p>
<p>	m=10<br />
	n=20<br />
	m*n=200</p><p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-three-classes-using-multiple-inheritance/">C++ program to implement three classes using multiple inheritance</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-three-classes-using-multiple-inheritance/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
