<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[return this-&amp;gt;objektname by value???]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code>//Ich hab eine Klasse mit Membervariable 
protected:
  Klassenname objekt;

//Dann mit Get Methode: 
Klassenname blabla::getObject()
{
  return this-&gt;object;
  //Frage: Wird Object nun by value übergeben, also quasi eine Kopie übergeben???  
  //Ich würde sagen ja, bin mir aber nicht sicher
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/248272/return-this-gt-objektname-by-value</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 03:33:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/248272.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Aug 2009 13:44:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to return this-&amp;gt;objektname by value??? on Sat, 22 Aug 2009 13:44:51 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code>//Ich hab eine Klasse mit Membervariable 
protected:
  Klassenname objekt;

//Dann mit Get Methode: 
Klassenname blabla::getObject()
{
  return this-&gt;object;
  //Frage: Wird Object nun by value übergeben, also quasi eine Kopie übergeben???  
  //Ich würde sagen ja, bin mir aber nicht sicher
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1764843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1764843</guid><dc:creator><![CDATA[c++_frage]]></dc:creator><pubDate>Sat, 22 Aug 2009 13:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to return this-&amp;gt;objektname by value??? on Sat, 22 Aug 2009 13:49:23 GMT]]></title><description><![CDATA[<p>Ja, es wird per Value (also Kopie) übergeben, da es augenscheinlich keine Referenz und kein Zeiger ist.<br />
Aber es ist schon anstrengender die Frage aus den Kommentaren im code zusuchen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1764848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1764848</guid><dc:creator><![CDATA[Kolumbianischer Kaffeerös]]></dc:creator><pubDate>Sat, 22 Aug 2009 13:49:23 GMT</pubDate></item><item><title><![CDATA[Reply to return this-&amp;gt;objektname by value??? on Sat, 22 Aug 2009 13:52:43 GMT]]></title><description><![CDATA[<p>Tipp: [cpp]- statt [code]-Tags verwenden.</p>
<p>Der Code wird dabei viel übersichtlicher:</p>
<pre><code class="language-cpp">//Ich hab eine Klasse mit Membervariable 
protected:
  Klassenname objekt;

//Dann mit Get Methode: 
Klassenname blabla::getObject()
{
  return this-&gt;object;
  //Frage: Wird Object nun by value übergeben, also quasi eine Kopie übergeben???  
  //Ich würde sagen ja, bin mir aber nicht sicher
}
</code></pre>
<p>Zur Frage selbst hat der kolumbianische Kaffeerös schon alles gesagt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1764851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1764851</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 22 Aug 2009 13:52:43 GMT</pubDate></item></channel></rss>