<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: C++ Friend function and Friend class</title>
	<atom:link href="http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class</link>
	<description>CodingUnit is your online resource for learning to program. Tutorials on C, C++, PHP, Python, MySQL, Java, JQuery, Opengl, DirectX and much more!</description>
	<lastBuildDate>Tue, 21 May 2013 20:09:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Dharmendra Kumar</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-6766</link>
		<dc:creator>Dharmendra Kumar</dc:creator>
		<pubDate>Fri, 26 Apr 2013 03:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-6766</guid>
		<description><![CDATA[A friend function can define also inside the class. then what is the make difference b/w if i defining a friend function inside a class and outside a class.]]></description>
		<content:encoded><![CDATA[<p>A friend function can define also inside the class. then what is the make difference b/w if i defining a friend function inside a class and outside a class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VinC</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-6574</link>
		<dc:creator>VinC</dc:creator>
		<pubDate>Wed, 06 Mar 2013 16:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-6574</guid>
		<description><![CDATA[class square
{ 
   int side;
   
   square(int a)
   {
      side = a;
    }
   friend int area(square sqObj);
};

class rect
{ 
    int len, bre;
    rect (int a, int b)
    {
      len = a;
      bre = b;
     }

    friend int area1(rect recObj);
}

int area (square sqObj)
{
     return(sqObj.side*sqObj.side);
}

int area1 (rect rectObj)
{
    return(rectObj.len*rectObj.bre);
}

void main()
{
  square sq(5);
  rect rec(3,5);
  cout &lt;&lt; area(sq);
  cout &lt;&lt; area1(rec);

}]]></description>
		<content:encoded><![CDATA[<p>class square<br />
{<br />
   int side;</p>
<p>   square(int a)<br />
   {<br />
      side = a;<br />
    }<br />
   friend int area(square sqObj);<br />
};</p>
<p>class rect<br />
{<br />
    int len, bre;<br />
    rect (int a, int b)<br />
    {<br />
      len = a;<br />
      bre = b;<br />
     }</p>
<p>    friend int area1(rect recObj);<br />
}</p>
<p>int area (square sqObj)<br />
{<br />
     return(sqObj.side*sqObj.side);<br />
}</p>
<p>int area1 (rect rectObj)<br />
{<br />
    return(rectObj.len*rectObj.bre);<br />
}</p>
<p>void main()<br />
{<br />
  square sq(5);<br />
  rect rec(3,5);<br />
  cout &lt;&lt; area(sq);<br />
  cout &lt;&lt; area1(rec);</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: radhika obhan</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5946</link>
		<dc:creator>radhika obhan</dc:creator>
		<pubDate>Mon, 07 Jan 2013 16:29:19 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5946</guid>
		<description><![CDATA[can u show a program in which we can make use of friendly function using two classes to calculate area of two objects using any fake formula]]></description>
		<content:encoded><![CDATA[<p>can u show a program in which we can make use of friendly function using two classes to calculate area of two objects using any fake formula</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: syra</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5944</link>
		<dc:creator>syra</dc:creator>
		<pubDate>Mon, 07 Jan 2013 15:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5944</guid>
		<description><![CDATA[nyc explanation!!!]]></description>
		<content:encoded><![CDATA[<p>nyc explanation!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Awet(success)</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5704</link>
		<dc:creator>Awet(success)</dc:creator>
		<pubDate>Fri, 21 Dec 2012 12:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5704</guid>
		<description><![CDATA[wow it is fantastic so continue.......]]></description>
		<content:encoded><![CDATA[<p>wow it is fantastic so continue&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailesh</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5543</link>
		<dc:creator>Shailesh</dc:creator>
		<pubDate>Tue, 20 Nov 2012 11:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5543</guid>
		<description><![CDATA[Characteristics of friend function

1. The friend function can access private and protected data members.
2. Friend function cannot call with the help of Object of that class, it is call by using normal &#039;C&#039; function.
3. Generally, friend function can take Object as a argument.
4. Friend function is not in scope of class.]]></description>
		<content:encoded><![CDATA[<p>Characteristics of friend function</p>
<p>1. The friend function can access private and protected data members.<br />
2. Friend function cannot call with the help of Object of that class, it is call by using normal &#8216;C&#8217; function.<br />
3. Generally, friend function can take Object as a argument.<br />
4. Friend function is not in scope of class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5473</link>
		<dc:creator>Anuj</dc:creator>
		<pubDate>Tue, 06 Nov 2012 07:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5473</guid>
		<description><![CDATA[Hey!
Can i pass an object to friend function? (of the same class whose friend the function is)

can a member function call this friend function? (if it does accept a class argument)]]></description>
		<content:encoded><![CDATA[<p>Hey!<br />
Can i pass an object to friend function? (of the same class whose friend the function is)</p>
<p>can a member function call this friend function? (if it does accept a class argument)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepali</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5395</link>
		<dc:creator>deepali</dc:creator>
		<pubDate>Sat, 06 Oct 2012 06:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5395</guid>
		<description><![CDATA[Well Explained, good concept !!]]></description>
		<content:encoded><![CDATA[<p>Well Explained, good concept !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhanawrlal</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5274</link>
		<dc:creator>bhanawrlal</dc:creator>
		<pubDate>Mon, 10 Sep 2012 07:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5274</guid>
		<description><![CDATA[this is not helpfull for me i want to see syntax of friend function]]></description>
		<content:encoded><![CDATA[<p>this is not helpfull for me i want to see syntax of friend function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sateesh Kumar</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-friend-function-and-friend-class/comment-page-1#comment-5243</link>
		<dc:creator>Sateesh Kumar</dc:creator>
		<pubDate>Sat, 01 Sep 2012 07:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=535#comment-5243</guid>
		<description><![CDATA[This is helpful to all who need this.]]></description>
		<content:encoded><![CDATA[<p>This is helpful to all who need this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
