<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Pointer To C++ Class Methods; Or Should You Call &#8216;em &#8220;Method Pointers&#8221;?</title>
	<atom:link href="http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/feed/" rel="self" type="application/rss+xml" />
	<link>http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 27 Jul 2009 06:26:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Himanshu</title>
		<link>http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/#comment-79</link>
		<dc:creator>Himanshu</dc:creator>
		<pubDate>Thu, 04 Jun 2009 14:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://mdzahidh.wordpress.com/?p=31#comment-79</guid>
		<description>Pls let me know if someone can help me get the answer!</description>
		<content:encoded><![CDATA[<p>Pls let me know if someone can help me get the answer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Himanshu</title>
		<link>http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/#comment-78</link>
		<dc:creator>Himanshu</dc:creator>
		<pubDate>Thu, 04 Jun 2009 14:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://mdzahidh.wordpress.com/?p=31#comment-78</guid>
		<description>Hi,

I&#039;ve another query related to member function and member data variables.
Consider below example

Class Hype{
private: 
 int data;
public:
 int get(){return data;}
 void set(int d){data=d;}
};
int main()
{
 Hype h1,h2,h3;
 int a,b,c;
 h1.set(10);
 h2.set(20);
 h3.set(30);
 a= h1.get();
 b= h2.get();
 c= h3.get();
 return 1;
}
w.r.t. above example I wanted to ask a weird question.
we are calling functions of class with objects of the class.
But how would the function know where actually the h1.data, h2,data or h3.data is stored in memory?
because internally we are operating upon data-member of that specific object which will have different memory locations for each of them?
So when we call h1.set(10) or h1.get() does the function gets any extra information about the objects location in memory? how?
Can someone pls answer this question?

Thanks
Himanshu</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve another query related to member function and member data variables.<br />
Consider below example</p>
<p>Class Hype{<br />
private:<br />
 int data;<br />
public:<br />
 int get(){return data;}<br />
 void set(int d){data=d;}<br />
};<br />
int main()<br />
{<br />
 Hype h1,h2,h3;<br />
 int a,b,c;<br />
 h1.set(10);<br />
 h2.set(20);<br />
 h3.set(30);<br />
 a= h1.get();<br />
 b= h2.get();<br />
 c= h3.get();<br />
 return 1;<br />
}<br />
w.r.t. above example I wanted to ask a weird question.<br />
we are calling functions of class with objects of the class.<br />
But how would the function know where actually the h1.data, h2,data or h3.data is stored in memory?<br />
because internally we are operating upon data-member of that specific object which will have different memory locations for each of them?<br />
So when we call h1.set(10) or h1.get() does the function gets any extra information about the objects location in memory? how?<br />
Can someone pls answer this question?</p>
<p>Thanks<br />
Himanshu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Univ2Univ.ir</title>
		<link>http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/#comment-56</link>
		<dc:creator>Univ2Univ.ir</dc:creator>
		<pubDate>Tue, 02 Dec 2008 06:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://mdzahidh.wordpress.com/?p=31#comment-56</guid>
		<description>hi
and thank you for this article.
i create Base Calss Called Object in (DOS C++ 3.0)
in header file i defined : typedef void (Object::*EventHandler)();
i Create Timer Class that have Tick Event(Inherited Object).
also i Create Cursor Class(Inherited Object), in this class i create new Timer Object
and i want te set one of TimerObject-&gt;Tick = Cursor::Timer_Tick;
but i cant do this, how can i solve this?</description>
		<content:encoded><![CDATA[<p>hi<br />
and thank you for this article.<br />
i create Base Calss Called Object in (DOS C++ 3.0)<br />
in header file i defined : typedef void (Object::*EventHandler)();<br />
i Create Timer Class that have Tick Event(Inherited Object).<br />
also i Create Cursor Class(Inherited Object), in this class i create new Timer Object<br />
and i want te set one of TimerObject-&gt;Tick = Cursor::Timer_Tick;<br />
but i cant do this, how can i solve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Calderon</title>
		<link>http://mdzahidh.wordpress.com/2008/07/16/pointer-to-c-class-methods-or-should-you-call-em-method-pointers/#comment-51</link>
		<dc:creator>Victor Calderon</dc:creator>
		<pubDate>Fri, 08 Aug 2008 20:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://mdzahidh.wordpress.com/?p=31#comment-51</guid>
		<description>Thank you, really, thank you very much.

This is what I can call a good tutorial.</description>
		<content:encoded><![CDATA[<p>Thank you, really, thank you very much.</p>
<p>This is what I can call a good tutorial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
